MailMessage.From Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the email address of the sender. Recommended alternative: System.Net.Mail.
public:
property System::String ^ From { System::String ^ get(); void set(System::String ^ value); };
public string From { get; set; }
member this.From : string with get, set
Public Property From As String
Property Value
The sender's email address.
Examples
MailMessage MyMessage = new MailMessage();
MyMessage.From = "john@contoso.com";
Dim MyMessage As MailMessage = New MailMessage()
MyMessage.From = "john@contoso.com"