MailMessage.Sender Property


Gets or sets the sender's address for this email message.

 property System::Net::Mail::MailAddress ^ Sender { System::Net::Mail::MailAddress ^ get(); void set(System::Net::Mail::MailAddress ^ value); };
public System.Net.Mail.MailAddress Sender { get; set; }
member this.Sender : System.Net.Mail.MailAddress with get, set
Public Property Sender As MailAddress

Property Value

A MailAddress that contains the sender's address information.


The sender's address is not validated or tied to the currently logged on user.

Applies to