Jump to content

Email


phpSensei

Recommended Posts

Why do i keep getting this error:

 

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\project_upload\register.php on line 192

 

$to = '[email protected]';
$subject = "Your Account Information";
$body = "You have sucessfully registered at my localhost host";
if (mail($to, $subject, $body)) {
  echo("<p>Account information has been sent to your email!</p>");
} else {
  echo("<p>Message delivery failed...</p>");
}

 

But never works, please help me out.

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/61027-email/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.