MockY Posted March 3, 2010 Share Posted March 3, 2010 I am using a Google's SMTP server in order to send some of my web forms with the help of PEAR. The minor problem that I have found is that the email address that shows up in the recipients Sender field is always the email address of the SMTP account used when the form is sent. Even if the user entered an email address in the form, this value can't seem to be used as the sender's email address. This value is indeed set since I echo it in the actual email message. How, if it's possible, do I change the sender address from the SMTP address to the address of the user? Link to comment https://forums.phpfreaks.com/topic/194019-overwrite-smtp-sender-email-address-when-sending-emails-with-pear/ Share on other sites More sharing options...
MockY Posted March 3, 2010 Author Share Posted March 3, 2010 As a work around, I added Reply-To in the headers which seemed to work. It would be nicer to use From though, but since this works, I'm just gonna let it be. Link to comment https://forums.phpfreaks.com/topic/194019-overwrite-smtp-sender-email-address-when-sending-emails-with-pear/#findComment-1021003 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.