Jump to content

e-mail error message


tom_b

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.