MailMessage.UrlContentBase Property

 

Gets or sets the Content-Base HTTP header, the URL base of all relative URLs used within the HTML-encoded body of the e-mail message. Recommended alternative: System.Net.Mail.

Namespace:   System.Web.Mail
Assembly:  System.Web (in System.Web.dll)

public string UrlContentBase { get; set; }

Property Value

Type: System.String

The URL base.

MailMessage MyMessage = new MailMessage();
MyMessage.UrlContentBase="http://www.contoso.com/Employees";

.NET Framework
Available since 1.1
Return to top
Show: