override SMTP from address

I am using the Imap_pop3 email module, I need to be able to over write the from address in the email but it keeps setting it to the admin username that is setup up in the core of the module. This way i can set a global email account, and be able to send for a specified user with their supplied email address.Any suggestions?
2 answers

Based on my research, many mail servers do not allow you to do this for security reasons. You typically wouldn't want an email address to be able to impersonate others, as that could lead to all types of mischief and misunderstandings.

Therefore, I believe you need to store the credentials of each user for which you'll be sending emails.


I do not know the imap module as I always use the email with template module. And I think Eric's answer is wrong at least for the Mendix mail server. You should be able to change the FROM address because you should be able to send mails from an adress like norplay@someaddress.nl. The Mendix mail server will allow that in the cloud. So it depends which mail server you are using. Indeed like Erix says most public mail servers will not allow it.