0 out of 3 rated this helpful - Rate this topic

MailMessage.ReplyToList Property

Gets or sets the list of addresses to reply to for the mail message.

Namespace:  System.Net.Mail
Assembly:  System (in System.dll)
public MailAddressCollection ReplyToList { get; }

Property Value

Type: System.Net.Mail.MailAddressCollection
The list of the addresses to reply to for the mail message.

Use the ReplyToList property to indicate the list of addresses other than the From address to use to reply to this message.

The ReplyToList property replaces the ReplyTo property that only allows a single address to reply to.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Not able to set this property
It is not clear to me how a 'read-only' property can "set" or "get" a recipient.

Answer:  This read-only property is a collection.  You add addresses to the collection by calling its Add() method.  See the MailAddressCollection class' description at http://msdn.microsoft.com/en-us/library/system.net.mail.mailaddresscollection.aspx.