Gets or sets the e-mail address of an entity which should receive the delivery confirmation message (when the message gets into mailbox of the server).
A string containing the e-mail address of a person which should receive the delivery confirmation message, or an empty string if no delivery confirmation is set.
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).
This sample creates new mail message, sets the e-mail address of delivery confirmation message recipient, and saves this message to disk.
[C#] 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"); } }
[Visual Basic] Imports MailBee Imports MailBee.Mime Imports System Module Sample Sub Main(ByVal args As String()) Dim msg As 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") End Sub End Module
MailMessage Class | MailBee.Mime Namespace | ConfirmRead | NotifyCondition