Failed to connect to mailserver (PHP error)

August 12, 2010 at 17:46:21
Specs: Windows XP
Im got a php contact form i put on my website, but when i try to send i message i get 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:\AppServ\www\send_contact.php on line 15

Any help will be appreciated.

See More: Failed to connect to mailserver (PHP error)

Report •

August 12, 2010 at 21:13:07
Winders doesn't come with an SMTP relay for sending e-mail like every other *nix distribution does.

Like the error message need to specify the SMTP server to use.

And even then, I've had problems w/ PHP delivering mail on Windows, my solution was to roll my own SMTP relay w/ php sockets... a hack, yes, but at least it worked! hehe

Report •

August 13, 2010 at 03:45:51
Windows actually does have a SMTP service, but it's not installed by default. Install it, configure it, and go from there.

Report •

Related Solutions

Ask Question