<?
// start email notification
require 'PHPMailerAutoload.php';

$mail = new PHPMailer;
$mail->isSMTP();                                      // Set mailer to use SMTP
$mail->Host = 'mail.tls2u.com';            // Specify main and backup server
$mail->Port = 465;
$mail->SMTPAuth = true;
$mail->SMTPSecure = 'ssl';                            // Enable SMTP authentication
$mail->Username = 'marketer@tls2u.com';           // SMTP username
$mail->Password = 'tls2up@ssw0rd';                    // SMTP password
$mail->From = 'marketer@tls2u.com';
$mail->FromName = 'TLS2U.COM';
$mail->addAddress($email, $nama);  // Add a recipient
$mail->addReplyTo('marketer@tls2u.com', 'TLS2U');
$mail->Subject = 'TLS2U.COM Registration';
$mail->Body    = "<p>Hi, ".$nama."</p><p>Thank you for joining TLS2U.COM</p><p>Contact us immediately if you did not authorize this registration.</p><p>Please login to your account through our official website <a href=\"http://vip.tls2u.com\">vip.tls2u.com</a></p><p>Your login details are:</p><p>Username : ".$usrnm."<br>Password : ".$pswd."</p><p>For security purposes, we recommend changing your password after logging in for the first time.</p><p>Please let us know if we can be of any further assistance to you.</p><p>Thank You.</p><p>Regards,<br /><br />Marketer<br />
The Langkawi Signature (TLS2U.COM)TLS2U.COM</p><hr><p>Note : Please add the sender email to your address book or to your email whitelist to ensure the email receive in future appear in your inbox.</p>";
$mail->AltBody =
"Hello, ".$nama."

Thank you for joining TLS2U.COM

Contact us immediately if you did not authorize this registration.

Please login to your account through our official website vip.tls2u.com

Your login details are:

User ID : ".$usrnm."
Password : ".$pswd."

For security purposes, we recommend changing your password after logging in for the first time.

Please let us know if we can be of any further assistance to you.

Thank You.

Regards,



Marketer
The Langkawi Signature (TLS2U.COM)

-----------------------------------------

Note : Please add the sender email to your address book or to your email whitelist to ensure the email receive in future appear in your inbox.";

          if(!$mail->send()) {
             echo 'Message could not be sent.';
             echo 'Mailer Error: ' . $mail->ErrorInfo;
             exit;
          }

// end email notification
?>
