if(isset($_POST['submit'])) { extract($_REQUEST); $from_email='noreply@hicoindia.net'; $reply_to_email='noreply@hicoindia.net'; $sender_name='Enquiry From '.$name; require 'mailer/PHPMailerAutoload.php'; $mail = new PHPMailer; $mail->isSMTP(); $mail->Host = 'mail.hicoindia.net'; $mail->SMTPAuth = true; $mail->Username = 'noreply@hicoindia.net'; $mail->Password = 'hico@2021#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->AddReplyTo($reply_to_email, $sender_name); $mail->setFrom($from_email, $sender_name); $mail->addAddress('contact@hicoindia.net'); //$mail->addBCC('geethpriyasweety@gmail.com'); $mail->isHTML(true); $mail->Subject = "Enquiry from ".$name; $mail->Body ="
Hi Admin,
Please check the below Enquiry details.
Name : ".$name."
Email ID : ".$email."
Contact Number: ".$phone."
Message : ".$message."
"; $mail->SMTPOptions = array( 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true ) ); if( $mail->send()){ $result="Thank you for your enquiry. We will get you shortly !!!"; }else{ $result="Try later"; } } ?>