Gets or sets the priority of the message.
The message priority level, or None if not set. The default value is None.
Different mail clients may set or interpret the priority settings differently while some of them may ignore it.
The value of this property is taken from the X-Priority and X-MSMail-Priority headers.
This sample loads the message from .EML file, sets High priority level for it, and sends this message.
[C#] using MailBee; using MailBee.SmtpMail; using MailBee.Mime; class Sample { static void Main(string[] args) { // Load the message from file. MailMessage msg = new MailMessage(); msg.LoadMessage(@"C:\Docs\TestMail.eml"); // Set the High priority level for the message. msg.Priority = MailPriority.High; // Send it. Smtp.QuickSend(msg); } }
[Visual Basic] Imports MailBee Imports MailBee.SmtpMail Imports MailBee.Mime Module Sample Sub Main(ByVal args As String()) ' Load the message from file. Dim msg As New MailMessage msg.LoadMessage("C:\Docs\TestMail.eml") ' Set the High priority level for the message. msg.Priority = MailPriority.High ' Send it. Smtp.QuickSend(msg) End Sub End Module
MailMessage Class | MailBee.Mime Namespace | Importance