Platform SDK: CDO 1.2.1

Importance Property (CDONTS Message Object)

The Importance property returns or sets the importance of the message. Read/write (read-only for a message in the Inbox).

Syntax

objMessage.Importance 
 

Data Type

Long

Remarks

The following values are defined:

Constant Value Description
CdoLow 0 Low importance
CdoNormal 1 Normal importance (default)
CdoHigh 2 High importance

Example

This code fragment sets the importance of a message as high:

' assume valid Outbox folder object from GetDefaultFolder method 
Set objMessage = objOutbox.Messages.Add 
' ... check here to verify the message was created ... 
objMessage.Subject = "I'm locked in my office" 
objMessage.Text = "Somebody please get the key and let me out." 
objMessage.Importance = CdoHigh 
objMessage.Send 
 

See Also

Send Method (Message Object)