SmtpMail.Priority Property


Gets or sets the priority of the e-mail message.

[Visual Basic]
Public Property Priority As MailPriority
[C#]
public MailPriority Priority {get; set;}
[C++]
public: __property MailPriority^ get_Priority();
public: __property void set_Priority(MailPriority^);
[JScript]
public function get Priority() : MailPriority;
public function set Priority(MailPriority);

Property Value

One of MailPriority values.

Example

[C# - Set High Priority]
SmtpMail oMail = new SmtpMail("TryIt");

// Set high priority
oMail.Priority = MailPriority.High;

[VB - Set High Priority]
Dim oMail As SmtpMail = New SmtpMail("TryIt")

' Set high priority
oMail.Priority = MailPriority.High