MailMessagePriority Property |
Gets or sets the priority of the message.
Namespace: MailBee.MimeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public MailPriority Priority { get; set; }
Public Property Priority As MailPriority
Get
Set
Property Value
Type:
MailPriorityThe message priority level, or
None if not set. The default value is
None.
Remarks
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.
Examples This sample loads the message from .EML file, sets
High priority level for it, and sends this message.
using MailBee;
using MailBee.SmtpMail;
using MailBee.Mime;
class Sample
{
static void Main(string[] args)
{
MailMessage msg = new MailMessage();
msg.LoadMessage(@"C:\Docs\TestMail.eml");
msg.Priority = MailPriority.High;
Smtp.QuickSend(msg);
}
}
Imports MailBee
Imports MailBee.SmtpMail
Imports MailBee.Mime
Module Sample
Sub Main(ByVal args As String())
Dim msg As New MailMessage
msg.LoadMessage("C:\Docs\TestMail.eml")
msg.Priority = MailPriority.High
Smtp.QuickSend(msg)
End Sub
End Module
See Also