MailMessageImportance Property
Gets or sets the importance of the message.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public MailPriority Importance { get; set; }

Property Value

Type: MailPriority
The importance of the message, or None if not specified. The default value is None.

The importance of the message is taken from Importance header.

To get or set the message priority (rather than the message importance), use Priority property. It's common practice to set both Priority and Importance properties. Some e-mail clients do not support Importance or Priority but still support one of these fields. Thus, if you specify both, all e-mail clients will be able to understand at least one of the fields.

This sample sends a message only if it's very important.
using MailBee;
using MailBee.SmtpMail;
using MailBee.Mime;

class Sample
    static void Main(string[] args)
        // Load the message from file.
        MailMessage msg = new MailMessage();

        // Send the message if it's very important.
        if (msg.Importance == MailPriority.Highest)
See Also