tom_b Posted February 5, 2007 Share Posted February 5, 2007 Hi, I'm making a message board and when a new message is posted I want to recieve an e-mail notifying me. The message board works fine but when I add the mail function I get the following: 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\blah... Any idea what this message means? Thanks, Tom Link to comment https://forums.phpfreaks.com/topic/37216-e-mail-error-message/ Share on other sites More sharing options...
troy_mccormick Posted February 5, 2007 Share Posted February 5, 2007 What that means is that in your PHP.ini file you have not setup your mail server. I'm assuming that you are getting this error while running the code on your local machine. If not, this is something your host will most likely have to change for you. Read more about it on the mail() function page of the manual. Link to comment https://forums.phpfreaks.com/topic/37216-e-mail-error-message/#findComment-177796 Share on other sites More sharing options...
tom_b Posted February 6, 2007 Author Share Posted February 6, 2007 Yes, it's on my local machine. My php.ini file says SMTP = localhost smtp_port = 25 is this wrong or is there something else I'm missing? Thanks again, Tom Link to comment https://forums.phpfreaks.com/topic/37216-e-mail-error-message/#findComment-177813 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.