aspNetEmail

MailPriority Enumeration

Used to control the priority header(s) of the email.

public enum MailPriority

Remarks

Used to set the following properties:

Example

[C#]
            EmailMessage msg = new EmailMessage();
            msg.Server = "mail.mycompany.com";
            msg.FromAddress = "me@mycompany.com";
            msg.To= "you@yourcompany.com";
            msg.Subject = "Confidential";
            msg.Body = "Here are our monthly sales figures....";
            
            msg.Priority = MailPriority.High;
            msg.Sensitivity = MailSensitivity.CompanyConfidential;
            
            msg.Send();
            
[Visual Basic]
            Dim msg As New EmailMessage()
            msg.Server = "mail.mycompany.com"
            msg.FromAddress = "me@mycompany.com"
            msg.To = "you@yourcompany.com"
            msg.Subject = "Confidential"
            msg.Body = "Here are our monthly sales figures...."
            
            msg.Priority = MailPriority.High
            msg.Sensitivity = MailSensitivity.CompanyConfidential
            
            msg.Send()
            

Members

Member NameDescription
None No priority set.
High Sets the mail priority level to 'High'.
Normal Sets the mail priority to normal.
Low Sets the mail priority to low.

Requirements

Namespace: aspNetEmail

Assembly: aspNetEmail (in aspNetEmail.dll)

See Also

aspNetEmail Namespace