aspNetEmail

EmailMessage.PriorityMS Property

Sets the X-MSMail-Priority flag of an email. Usually used by MS mail readers.

public MailPriority PriorityMS {get; set;}

Remarks

Valid values can be: MailPriority.High MailPriority.Normal MailPriority.Low To set all the priority levels of Importance, Urgent, PrioirtyX, PriorityMS, use the Priority property.

Example

[C#]
		EmailMessage msg = new EmailMessage( "mail.MyCompany.com" );
		msg.FromAddress = "me@MyCompany.com";
		msg.To = "you@YourCompany.com";
		msg.Subject = "Daily Newsletter";
		msg.Body = "Here is our daily newsletter.....";
		msg.PriorityMS = MailPriority.High
		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.Subject = "Daily Newsletter"
		msg.Body = "Here is our daily newsletter....."
		msg.PriorityMS = MailPriority.High
		If (msg.Send()) Then
		    Console.WriteLine("Message Sent!")
		Else
		    Console.WriteLine(msg.LastException().Message)
		End If
		

See Also

EmailMessage Class | aspNetEmail Namespace