php mail?
Posted by: jasonw (
Date: March 06, 2010 06:02AM

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\sendeail.php on line 59

Any ideas? I get this error when someone uses my PHP email form on my website.

Options: ReplyQuote
Re: php mail?
Posted by: c2dan (
Date: March 06, 2010 12:40PM

PHP needs to be configured to use an SMTP server in order to send emails. WAMP does not come with a mail server.

I tend to use my ISP's smtp server for sending emails as I only use wamp for testing/development purposes. NOTE: the standard mail() function will not work with SMTP servers which require authentication. Instead you'll need to use an alternative such as PHPMailer -> []

Options: ReplyQuote

Sorry, only registered users may post in this forum.