aspNetEmail

EmailMessage.Urgent Property

Sets the Urgent flag for the mail header, of the message.

public MailPriority Urgent {get; set;}

Remarks

Not all mail readers support this field. To set all the priority levels of Importance, Urgent, PrioirtyX, PriorityMS, use the Priority property.

Example

[C#]
		EmailMessage msg = new EmailMessage();
		msg.Server = "Mail1.MyCompany.com";
		msg.FromAddress = "me@MyCompany.com";
		msg.To = "you@YourCompany.com";
		msg.Subject = "Daily Newsletter";
		msg.Body = "Here is our daily newsletter.....";
		msg.Urgent = MailPriority.High;
		if ( msg.Send() )
		{
			Console.WriteLine( "Message Sent!");
		}
		else
		{
			Console.WriteLine( msg.LastException().Message );
		}
		
[Visual Basic]
		Dim msg As New EmailMessage()
		msg.Server = "Mail1.MyCompany.com"
		msg.FromAddress = "me@MyCompany.com"
		msg.To = "you@YourCompany.com"
		msg.Subject = "Daily Newsletter"
		msg.Body = "Here is our daily newsletter....."
		msg.Urgent = MailPriority.High
		If (msg.Send()) Then
		    Console.WriteLine("Message Sent!")
		Else
		    Console.WriteLine(msg.LastException().Message)
		End If
		

See Also

EmailMessage Class | aspNetEmail Namespace