<?php
require("class.phpmailer.php"); // path to the PHPMailer class
$email = $_GET['email'];
$code = $_GET['code'];
$code = md5($code);
$user = $_GET['user'];
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Mailer = "smtp";
$mail->Host = "ssl://gator2011.hostgator.com";
$mail->Port = 465;
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->IsHTML(true);
$mail->Username = "
[Only registered and activated users can see links. Click Here To Register...]"; // SMTP username
$mail->Password = "Victor8109$"; // SMTP password
$mail->AddAddress($email);
$mail->From = "
[Only registered and activated users can see links. Click Here To Register...]";
$mail->Subject = "Silkcore.net Account Verification";
$mail->Body = "This email was automatically sent by our account verification system.<br /><br />
Thanks for singing up on <b>SilkCore</b>, please follow this link to complete your registration:</b><br />
<b>Link:</b> <a href='http://silkcore.net/?verify=".$code."&user=".$user."'>http://silkcore.net/?verify=$code&user=$user</a><br /><br />
Once you finish teh verification process you will be able to login to our <a href='http://silkcore.net/?topic=manageacc'>Account Management Panel</a> and in-game!<br /><br />
<i>Remember this is an automatic email generated by our account verification system.<br />
Do not answer this email because this inbox is not checked by our staff. You wont get any response.<br />
For contact please write us to <b>
[Only registered and activated users can see links. Click Here To Register...].</b></i>";
if(!$mail->Send()) {
echo 'Message was not sent.';
echo 'Mailer error: ' . $mail->ErrorInfo;
} else {
//echo 'Message has been sent.';
}
?>