sending email from php Reason: 553

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
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

sending email from php Reason: 553

Post by yacahuma »

I have a form where a visitor send a message to a user in the system. The form will generate an email to the user.

If I use a known email , the user will always receive the email like it was sent from the site
but if he reply, he will be replying to the site an not the person that sent the email.


But if I use the visitors email I will get an error
553 sorry, that domain isn't in my list of allowed rcpthosts


what is the right way to do this?

BTW I am using PHPmailer

Thank you
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

That message is basically the same as "relay denied". It means you're trying to send mail through a server which only allows you to send emails to the domain for which it manages. You've probably got the wrong server, or the server requires a username and password before it can do anything better for you.

PS: http://www.swiftmailer.org/ <--- Still in development and supporting new versions of PHP unlike PHPMailer
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

so the from does not matter

Post by yacahuma »

So the from email that I use does not matter??
Post Reply