Thankyou For Your Query
IsSMTP();
$mailer->Host = "mail.smtp.com"; // SMTP servers
//$mailer->Host ="smtp.gmail.com";
$mailer->SMTPAuth = true; // turn on SMTP authentication
$mailer->Username = "smtp@idreambiz.com"; // SMTP username
$mailer->Password = "Water1001"; // SMTP password
$mailer->SMTPSecure= "tls";
$mailer->Port = 2082;
$mailer->SetFrom(trim($_POST['email']),trim($_POST['name']));
//$emailAddress=array("info@dhlmoverspackers.co.in");
$mailer->addAddress("info@dhlmoverspackers.co.in");
$mailer->addReplyTo("info@dhlmoverspackers.co.in","Info");
$mailer->Subject = ("Enquiry From Dhl Packers and Movers Website");
$mailMessage = "
Enquiry
|
Name
|
".trim($_POST['name'])."
|
Phone
|
".trim($_POST['mobile'])."
|
Date
|
".trim($_POST['date(format)'])."
|
Mail-id
|
".trim($_POST['email'])."
|
Moving From
|
".trim($_POST['from'])."
|
Moving To
|
".trim($_POST['to'])."
|
Messege
|
".trim($_POST['message'])."
|
";
$mailer->MsgHTML($mailMessage);
if($mailer->send())
{
echo "
Success! Massege Has Been Send We Will Contact You Shortly.
";
}
else
{
echo "sorryy";
}
}
?>