The Content-type of the email, for example text/html; or text/plain;.
This property overrides the value set for BodyFormat Additional Info: ftp://ftp.isi.edu/in-notes/rfc1341.txt ftp://ftp.isi.edu/in-notes/rfc822.txt
[C#]
EmailMessage msg = new EmailMessage( "mail.MyCompany.com" );
msg.FromAddress = "me@MyCompany.com";
msg.To = "you@YourCompany.com";
msg.ContentType = "text/xml";
msg.Subject = "Daily Newsletter";
if ( msg.Send() )
{
Console.WriteLine( "Message Sent!");
}
else
{
Console.WriteLine( msg.LastException().Message );
}
[Visual Basic]
Dim msg As New EmailMessage("mail.MyCompany.com")
msg.FromAddress = "me@MyCompany.com"
msg.To = "you@YourCompany.com"
msg.ContentType = "text/xml"
msg.Subject = "Daily Newsletter"
msg.Body = "Here is our daily newsletter....."
If (msg.Send()) Then
Console.WriteLine("Message Sent!")
Else
Console.WriteLine(msg.LastException().Message)
End If