Sets the Importance flag for the mail header, of the message sent.
Valid values include MailPriority.High MailPriority.Normal MailPriority.Low Not all mail readers support the Importance flag. To set the priority levels, of Importance, Urgent, PrioirtyX, PriorityMS, use the EmailMessage.Priority property.
[C#]
EmailMessage msg = new EmailMessage( "mail.MyCompany.com" );
msg.FromAddress = "me@MyCompany.com";
msg.To = "you@YourCompany.com";
msg.Importance = MailPriority.High;
msg.Subject = "Daily Newsletter";
msg.Body = "Here is our 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.Importance = MailPriority.High
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