System.Web.UI.WebControls.MailDefinition.From Property

Gets or sets the e-mail address of the message sender.

Syntax

[System.ComponentModel.DefaultValue("")]
[System.ComponentModel.NotifyParentProperty(true)]
public string From { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The MailDefinition.From property contains the e-mail address of the sender of the e-mail message. If the MailDefinition.From property is left blank, or contains an improperly formed e-mail address, the System.Net.Mail.SmtpClient.Send(string, string, string, string) method throws an System.Web.HttpException exception and the e-mail message is not sent.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0