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.

Modifying the FROM SMTP header without affecting the MIME from: header

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.

Set the Sender property with the address you want in the MAIL FROM header.


Click Here to Visit

What's Your Reaction?

like
0
dislike
0
love
0
funny
0
angry
0
sad
0
wow
0