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
sending email from php Reason: 553
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
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
PS: http://www.swiftmailer.org/ <--- Still in development and supporting new versions of PHP unlike PHPMailer
so the from does not matter
So the from email that I use does not matter??