mclenale Posted September 22, 2011 Report Share Posted September 22, 2011 I have looked through other posts to find this problem but it seems that no one else has had it. I know some HTML and CSS and got the web programmer video set yesterday. After installing WAMP, most of it has been very smooth and accessible; when I tried using the "email()" function yesterday, I received errors. I am running the latest php and everything else as I just got it yesterday and all other code runs fine. The full error is: 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\practicephp\emailstripped.php on line 3 Please help. Thanks. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted September 22, 2011 Report Share Posted September 22, 2011 1) Using the mail() function from your local computer can be a bit tricky, and usually involves setting your smtp/smtp port settings within your php.ini file. I usually suggest that people test this functionality on a live server, rather than through WAMP or similar, so you don't run into this problem. 2) Not you are missing a "s" in the "killersites": http:killersite.com/forums/feed/rss. If that doesn't fix the issue, post back and we can look into this further. Quote Link to comment Share on other sites More sharing options...
Emmy Posted September 22, 2011 Report Share Posted September 22, 2011 1.You need to enter the correct smtp address in your config files for mailing to work and 2.In that case, you also need your smtp mail server to be open for relay for your localhost Quote Link to comment 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.
Note: Your post will require moderator approval before it will be visible.