Platform SDK: CDO 1.2.1 |
The Importance property returns or sets the importance of the message. Read/write (read-only for a message in the Inbox).
objMessage.Importance
Long
The following values are defined:
Constant | Value | Description |
---|---|---|
CdoLow | 0 | Low importance |
CdoNormal | 1 | Normal importance (default) |
CdoHigh | 2 | High importance |
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