Hi,
When you send an email using System.Net.Mail you can set the SMTP MAIL FROM envelope by using the MailMessage.Sender Property.
If you set the smtp network deliveryMethod property to be "Network", the MAIL FROM envelope is set using the Sender value.
If you set the smtp network deliveryMethod property to be "PickupDirectoryFromIis", the MAIL FROM envelope uses the MailMessage.From property instead of the Sender one.
I need to keep PickupDirectoryFromIis as my deliveryMethod for performance concern.
Any suggestion how to keep the value I need for the SMTP MAIL FROM envelope?
Thanks in advance.