MailBee.NET Objects 3.1

MailMessage.ConfirmRead Property

Gets or sets the e-mail address of an entity which should receive the read confirmation message.

public string ConfirmRead {get; set;}

Property Value

A string containing the e-mail address of the entity which should receive the read confirmation message, or an empty string if no read confirmation is set.

Remarks

The value of this property is taken from Disposition-Notification-To header. Usually it will contain the same e-mail address as From or ReplyTo field.

Note   This property will not have effect if the e-mail client software of the recipient does not support this feature.

To get or set the delivery confirmation, the developer should use ConfirmReceipt property.

Example

This sample downloads the first message from the specified POP3 account and displays the e-mail address of read confirmation recipient if any.

[C#]
using MailBee;
using MailBee.Pop3Mail;
using MailBee.Mime;
using System;

class Sample
{
    static void Main(string[] args)
    {

        // Download the first mail message from the specified POP3 account.
        MailMessage msg = Pop3.QuickDownloadMessage("pop3.mail.com", "kathy1981", "password", 1);

        // Show the e-mail address of recipient of the read confirmation message.
        if (msg.ConfirmRead != String.Empty)
        {
            Console.WriteLine("Send read confirmation to " + msg.ConfirmRead);
        }
        else
        {
            Console.WriteLine("There is no read confirmation recipient available");
        }
    }
}
[Visual Basic]
Imports MailBee
Imports MailBee.Mime
Imports MailBee.Pop3Mail
Imports System

Module Sample
    Sub Main(ByVal args As String())
        ' Download the first mail message from the specified POP3 account.
        Dim msg As MailMessage = Pop3.QuickDownloadMessage("pop3.mail.com", "kathy1981", "password", 1)

        ' Show the e-mail address of recipient of the read confirmation message.
        If msg.ConfirmRead <> String.Empty Then
            Console.WriteLine("Send read confirmation to " & msg.ConfirmRead)
        Else
            Console.WriteLine("There is no read confirmation recipient available")
        End If
    End Sub
End Module

See Also

MailMessage Class | MailBee.Mime Namespace | ConfirmReceipt