Gets or sets a string that is the HTML body.
Set the HtmlBaseLocation property to specify the referenced images folder. You may use the LoadHtmlBody function to load the HtmlBody property from an HTML file content and set the HtmlBaseLocation property to the file folder. You may also set the TextBody property to create an alternative text part to the HTML body.
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>";
Mail Class | MailMill Namespace | TextBody | HtmlBaseLocation | LoadHtmlBody