MailMessage.Sender 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 sender's address for this email message.
public:
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; }
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.
Remarks
The sender's address is not validated or tied to the currently logged on user.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.