Page 1 of 1

Mail sending error

Posted: Sat Aug 30, 2008 5:14 am
by Saya.08
When i tried to send mail in PHP it failed and display a warning as below

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for sujilesh143@gmail.com in C:\wamp\www\Trial\send.php on line 15

Actually I am a beginner in the field of PHP.Here we are using Wampserver as software.SMTP is also enabled please tell me a complete solution.It's very urgent.

Re: Mail sending error

Posted: Sat Aug 30, 2008 11:07 am
by greyhoundcode
If you are running your WAMP setup using the default settings then no, you will not be able to send emails.

Off the top of my head I couldn't tell you how to change the settings to facilitate this within WAMP, I suggest you look up Apache email config on Google or something.

So that's probably not a great deal of help :? but you might like to know that your code will probably work fine when uploaded to your web server (if that is your intention, of course).