( ! ) Warning: mail() [function.mail]: Failed to connect to mailserver at "hotmail.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\tutorial\reguser.php on line 70
here is my whole mail code
Code: Select all
$lastid = mysql_insert_id();
$to = $email;
$subject = "Activate your account!";
$headers = "From: Admin@EpicWorlds.com";
$server = "hotmail.com";
ini_set("SMTP",$server);
$body = "Hello $player,You have just made an account with Epic Worlds, To get started using your account, You need to activate your account with the link below. Once you do that you can log in
:http://localhost/tutorial/tutorials/register-login/activation.php?id=$lastid&code=$random";
mail($to, $subject, $body,$headers);
print "Thank you for registering! Check you email to activate your account!";