MailMessageReplyTo Property
Gets or sets the list of the e-mail addresses where to send a reply to this message.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public EmailAddressCollection ReplyTo { get; set; }

Property Value

Type: EmailAddressCollection
A reference to the collection of e-mail addresses which are intended recipients of a reply to this message. The default value is an empty collection.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionvalue is a null reference (Nothing in Visual Basic).
Remarks

To specify it as a string, set msg.ReplyTo.AsString value (assuming msg is MailMessage instance).

This value is obtained from Reply-To header of the message. If you need to reply to a message which does not contain Reply-To header, send the reply to From address.

Examples
This sample gets a message from POP3 server and sends autoresponse to its Reply-To address.
using MailBee;
using MailBee.SmtpMail;
using MailBee.Pop3Mail;
using MailBee.Mime;

class Sample
{
    static void Main(string[] args)
    {
        // Download the first mail message from the specified POP3 account.
        MailMessage msg = Pop3.QuickDownloadMessage("mail.company.com", "bill", "password", 1);

        // Send the autoresponse message.
        Smtp.QuickSend("bill@company.com", msg.ReplyTo.ToString(), "Warning notification",
            "Since I'm currently on vacations, I'll reply your message after 01/08/06.");
    }
}
See Also