MailMill .NET Class Library

Mail.HtmlBaseLocation Property

Gets or sets a string that specifies a path to the folder where the images that are referenced by the HTML body are stored.

public string HtmlBaseLocation {get; set;}

Remarks

If HtmlBaseLocation property is empty, images referenced by the HtmlBody property are searched in the current directory.

Example

This sample shows how to create a message with an HTML body containing images.

Mail oMail = new Mail();
oMail.HtmlBaseLocation = @"d:\web\images";
oMail.HtmlBody = "<html><body background=\"back_ground.jpg\">This is the html body with a background image...</body></html>";

See Also

Mail Class | MailMill Namespace | HtmlBody | LoadHtmlBody