benjipie Posted December 11, 2007 Share Posted December 11, 2007 Hi, I am learning PHP from the book 'PHP Solutions' (FoE) but i'm stuck. I'm making a form that sends a message to my email but i get this message everytime i push the 'submit' button. Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp.example.us" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Inetpub\wwwroot\phpsolutions\contact.php on line 26 What does this mean and how can i resolve this? Thanks for any help offered... Quote Link to comment https://forums.phpfreaks.com/topic/81108-how-can-i-resolve-this-error-message/ Share on other sites More sharing options...
revraz Posted December 11, 2007 Share Posted December 11, 2007 What server do you have PHP installed on? Looks like the SMTP server isn't set in the PHP.INI file. Quote Link to comment https://forums.phpfreaks.com/topic/81108-how-can-i-resolve-this-error-message/#findComment-411563 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.