Hi,
This is so incredibly complicated!
The difficulty has been that many servers don't obey standards and they also have a myriad of mechanisms for processing outgoing mail.
The good news is that we do have plans to sort out the complexity as much as possible, and probably provide more flexibility as well.
Anyway....to answer your question...
The "sender" is not part of the email headers - it's inferred by the server's email processing software.
The "sender" is either taken from the "From" line of the email or must be specified by the SENDMAIL_F_OPTION feature (or the INI_SET_FROM feature for Windows servers).
The SENDMAIL_F_OPTION only works if your server uses it (i.e. some servers).
INI_SET_FROM only works on some Windows servers.
This means that FormMail can only specify the Sender on a few servers (using SENDMAIL_F_OPTION or INI_SET_FROM).
Therefore it hasn't made sense for us to implement a feature that sets the sender differently to the from address.
Hence, this means that FormMail only deals with the From address.
In short, no, you can only get FormMail to set the sender as being the From address.
If it helps, you can rename the "email" field so that it gets treated as non-special and will be included in the from results. Alternatively, keep the "email" field and use the DupHeader option to mail_options.
If none of this helps, then the last resort is to use FormMail's Hook System to override some of the processing to get what you want (using PHP).
Bookmarks