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.4 build 677 for .NET 4.5
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.
MailBeeInvalidArgumentExceptionvalue is a null reference (Nothing in Visual Basic).

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.

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("", "bill", "password", 1);

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