Click to See Complete Forum and Search --> : Mail();


NZ_Kiwis
10-31-2009, 05:54 PM
I've just installed WAMPSERVER on my computer and i've copied a working script from my web server and 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:\wamp\www\includes\send_email.php on line 10


I've added php.exe and php-cgi.exe to my firewall exceptions but still nothing, how can I get this working.

Any help :-)

Neville1985
11-01-2009, 01:11 AM
I've just installed WAMPSERVER on my computer and i've copied a working script from my web server and 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:\wamp\www\includes\send_email.php on line 10


I've added php.exe and php-cgi.exe to my firewall exceptions but still nothing, how can I get this working.

Any help :-)

Couple of tips in there:

http://phpbuilder.com/board/showthread.php?t=10369264 (http://phpbuilder.com/board/showthread.php?t=10369264)

dagon
11-01-2009, 01:19 AM
install a mail server on your machine, or use your isp\gmail\yahoo, for the latter you need to set up the appropriate details in the php.ini.