MailDefinition::Subject Property
.NET Framework (current version)
Gets or sets the subject line of the e-mail message.
Assembly: System.Web (in System.Web.dll)
The Subject property is used as the subject line of the e-mail message. It can be left empty.
The following code example sets the Subject property to the text entered in a TextBox control on a Web Forms page.
This code example is part of a larger example provided for the MailDefinition class.
.NET Framework
Available since 2.0
Available since 2.0
Show: