MailMessageConfirmReceipt Property |
Namespace: MailBee.Mime
The value of this property is taken from Return-Receipt-To header. Usually (if set) it will contain the same e-mail address as From or ReplyTo field.
Note |
---|
This property will not have effect if the e-mail server software of the recipient does not support this feature. |
Another method of requesting delivery receipt is using mailer.DeliveryNotification.NotifyCondition = DsnNotifyCondition.Always (assuming mailer is an instance of Smtp class).
To get or set the read confirmation, the developer should use ConfirmRead property.using MailBee; using MailBee.Mime; using System; class Sample { static void Main(string[] args) { MailMessage msg = new MailMessage(); // Set the e-mail address of confirmation message recipient. msg.ConfirmReceipt = "jdoe@domain.com"; // Save message to the specified .eml file. msg.SaveMessage(@"C:\Temp\MyMail.eml"); } }