MailMill .NET Class Library

Mail.ReplyTo Property

Gets an EmailArray object that contains email addresses to reply the message to.

public EmailArray ReplyTo {get;}

Remarks

The ReplyTo EmailArray object contains the list of email addresses that will be set in the Reply-To message header field. Use the Add method to append an email address to the ReplyTo EmailArray. Use the Value property to get or set a comma separated string containing email addresses. Setting this field is required if you want the recipient to reply to one or more address(es) that is (are) different from the From address. Note that Delivery Status Messages (DSN) will be returned to the From address and not to the Reply-To address(es). It is not recommended to set the ReplyTo property to the same address as the From property.

Example

This sample shows how to fill the ReplyTo EmailArray.

Mail oMail = new Mail();
oMail.From = "Marcus <marcus@emilltest.com>"
oMail.ReplyTo.Value = "Developers <developers@emilltest.com>"

See Also

Mail Class | MailMill Namespace | EmailArray | EmailArray.Add | EmailArray.Value | From