Click to See Complete Forum and Search --> : Test the mail() function localy?


byte_eater
09-09-2006, 06:50 AM
Hello!
How to test if the mail function works, on the local machine...?

I get this warning, when trying to send mail to yahoo or another mail:

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 D:\web\home\moldova-hotels.site\www\book.php on line 181

Is there any way to test if the function works, before uploading it to a real server? I have Apache on my machine...

Thanks!

bokeh
09-09-2006, 07:07 AM
Install a mailserver on the local machine

byte_eater
09-09-2006, 09:53 AM
Install a mailserver on the local machine
what mail server can u recommend? Thanks!

bokeh
09-09-2006, 10:03 AM
For windows: ArgoSoft. It's free and can be configured not to require authentication from local.

byte_eater
09-09-2006, 03:46 PM
thanks man!