Please Enter Security Code. ";
}
else
{
if($_SESSION['captcha'] != $_POST['captcha'])
{
$validation_message .= "
Please Enter Correct Security Code. ";
}
}
if(!$validation_message)
{
require_once('phpMailer/class.phpmailer.php');
$html_message .= "
";
$html_message .="Name | : | ".$name." |
";
$html_message .="Mobile No. | : | ".$phone." |
";
$html_message .="Email-ID | : | ".$email." |
";
$html_message .="Enqiury | : | ".$enquiry." |
";
$html_message .= "
";
//die($html_message);
$mail = new PHPMailer();
$mail->From = $email;
$mail->FromName = $name;
$mail->Subject = "Enquiry/Feedback from Website";
$mail->AltBody = "To view the message, please use an HTML compatible email viewer!";
$mail->IsSMTP();
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "ssl"; // sets the prefix to the servier
$mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
$mail->Port = 465; // set the SMTP port for the GMAIL server
$mail->Username = "admin@dreamlabz.com"; // GMAIL username
$mail->Password = "dreamlabz@1"; // GMAIL password
$mail->AddAddress('info@northerntannery.com','');
//$mail->AddAddress('prabodh@dreamlabz.com','');
$mail->MsgHTML($html_message);
$MailSent = $mail->Send();
$processed = true;
}
}
?>
-:-:- Ahsan Leathers -:-:-