Creating an HtmlEmailMessage |
To create an HtmlEmailMessage is very similar to how you create an EmailMessage instance. As with an EmailMessage instance you must set the minimum To and From headers.
Example
[C#]
HtmlEmailMessage message = new HtmlEmailMessage(); message.To = "recipient@myserver.com"; message.From = "sender@myserver.com";
[Visual Basic]
Dim message = New HtmlEmailMessage() message.To = "recipient@myserver.com" message.From = "sender@myserver.com"
|