Mail sending error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Saya.08
Forum Newbie
Posts: 1
Joined: Sat Aug 30, 2008 4:58 am

Mail sending error

Post 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.
User avatar
greyhoundcode
Forum Regular
Posts: 613
Joined: Mon Feb 11, 2008 4:22 am

Re: Mail sending error

Post 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).
Post Reply