Jump to content

Overwrite SMTP sender email address when sending emails with PEAR


MockY

Recommended Posts

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.