';
require("phpmailer/class.phpmailer.php");
$mail = new PHPMailer();
$mail = new PHPMailer(); //Create PHPmailer class
$mail->From = "info@smarttrackingsystem.com"; //Sender address
$mail->FromName = "Smart Tracking System "; //The name that you'll see as Sender
$mail->Host = "mail.smarttrackingsystem.com"; //Your SMTP mail server
$mail->Port = '587';
$mail->Mailer = "smtp"; //Protocol to use
$mail->AddAddress("info@smarttrackingsystem.com"); //The address you are sending mail to
$mail->Subject = "Registration from STS web"; //Subject of the mail
$mail->Body = $message; //Body of the message
$mail->SMTPAuth = "true";
$mail->IsHTML(true);
$mail->Username = "info@smarttrackingsystem.com"; //valid email id of the domain
$mail->Password = "antdubai"; //password for abc@xyz
if(!$mail->Send())
{ //Check for result of sending mail
echo "There was an error sending the message"; //Write an error message if mail isn't sent"
exit; //Exit the script without executing the rest of the code
}
else
{
$message2='
Dear Sir / Madam, Greetings from acSys IT Solutions,
Thank you for your Registration, Our Executive will contact you earlier.
acSys-IT Solutions Pvt. Ltd
Chennai - 600 026.
India.
Tel: +91 44 24843322
Web: www.acsys-it.com
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.acSys-IT.com
P Before printing this email, please consider your responsibility to the environment.
';
$msg= "
Thanks for your Registration, We will contact you at the earliest!
";
$mail2 = new PHPmailer();
$mail2->SetLanguage("en", "phpmailer/language");
$mail2->From = "info@smarttrackingsystem.com";
$mail2->FromName = "Smart Tracking System";
$mail2->Host = "mail.smarttrackingsystem.com"; //Your SMTP mail server
$mail2->Mailer = "smtp";
$mail2->Password = "antdubai"; //password for abc@xyz
$mail2->Username = "info@smarttrackingsystem.com"; //valid email id of the domain
$mail2->Subject = "Thanks for your Registration ";
$mail->Body = $message; //Body of the message
$mail2->SMTPAuth = "true";
$mail2->IsHTML(true);
$mail2->Body = $message2;
$mail2->AddAddress($email,"$name ");
//$mail2->AddReplyTo($your_email,"SuperSonic Admin");
if (!$mail2->Send())
{
$msg1="
There was an error in sending mail to user
";
echo "
".$mail2->ErrorInfo."
";
}
else
{
$msg1= "
Message sent!
";
}
$mail2->ClearAddresses();
$mail2->ClearAttachments();
}
$msg="Thanks for your Registration.";
$mail->ClearAddresses();
$mail->ClearAttachments();
}
?>
Help Desk | Project Tracking | Issue Tracking | Effort Tracking | HR Management