MailMessage.To Property

 

Gets or sets a semicolon-delimited list of recipient e-mail addresses. Recommended alternative: System.Net.Mail.

Namespace:   System.Web.Mail
Assembly:  System.Web (in System.Web.dll)

public string To { get; set; }

Property Value

Type: System.String

A semicolon-delimited list of e-mail addresses.

Recipients in the semicolon-delimited list can be either email addresses or address book display names.

MailMessage MyMessage = new MailMessage();
MyMessage.To = "john@contoso.com";

.NET Framework
Available since 1.1
Return to top
Show: