Modifying the FROM SMTP header without affecting the MIME from: header
Abstract This document defines the initial IANA registration for permanent mail and MIME message header fields, per RFC 3864. Table of Contents 1.
In SMTP there is the envelope MAIL FROM header (actually an SMTP command), and a FROM header in the message data itself (example below)
I need to be able to modify the MAIL FROM header without affecting the MIME 'From' header.
The difficulty is the .net MailMessage contains one 'From' property that controls both SMTP and MIME header, and the 'Headers' attribute that allows customizing header doesn't not allow overwriting the From header.
Sender property with the address you want in the
MAIL FROM header.
Click Here to Visit