MailMill .NET Class Library

Mail.TextBody Property

Gets or sets a string that is the text body.

public string TextBody {get; set;}

Remarks

If both HtmlBody and TextBody properties are set, the text body will be sent as an alternative content to the HTML body.

Example

This sample shows how to create a simple message with a TextBody sent as an alternative content to the HTML body.

Mail oMail = new Mail();
oMail.TextBody = "This is the text body.\r\nGood bye.";
oMail.HtmlBody = "<html><body>This is the <b>HTML body</b>.<br>Good bye.</body></html>

See Also

Mail Class | MailMill Namespace | HtmlBody