System.Net.Mail.MailMessage.To Property

Gets the address collection that contains the recipients of this e-mail message.


public MailAddressCollection To { get; }


Documentation for this section has not yet been entered.


The MailMessage.To property is used to designate the addresses on the To line of an e-mail message. To add a recipient to an e-mail message, create a System.Net.Mail.MailAddress for the recipient's address, and then add that object to the collection returned by this property.


Namespace: System.Net.Mail
Assembly: System (in System.dll)
Assembly Versions:,
Since: .NET 2.0