Topic: using the mail() function in windows

I am a bit perplexed trying to use the mail() funtion. I am using windows operating system. It doesn't seem to want to work. Is there something I am missing?  I get an error message saying :
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

I am now using the basic PHP tutorials. Very new to any sort of programming language.
 
Thanks,
Ken_ww

Last edited by ken_ww (October 4, 2009 1:40 pm)

Vote up Vote down

Re: using the mail() function in windows

I usually suggest you test the mail() function on your web hosting, not on your local machine, if at all possible. Using the mail() function on your local machine requires a bit of fiddling.

More info here: http://www.joshstauffer.com/tech/send-t … ampserver/

Benjamin Falk | Falken Creative : Twitter
Skills: Photoshop, Illustrator, HTML, CSS, jQuery, PHP and CodeIgniter

Vote up Vote down

Re: using the mail() function in windows

Thanks a lot. Works fine once it's uploaded.

Vote up Vote down