Name
Importance —
objNewMail
.
Importance =
intPriority
Synopsis
An integer value that allows you to set the mail message's priority, which is used by the mail messaging system to schedule delivery of mail.
Parameters
-
intPriority An integer that can contain any of the following CDO constants:
-
CdoLow (0) Low. Schedule delivery during off-hours or times of low system use.
-
CdoNormal (1) Normal. Schedule delivery during regular delivery schedules for normal messages.
-
CdoHigh (2) High. Attempt to deliver immediately.
-
Example
<%
' Dimension local variables.
Dim objNewMail
' Instantiate a NewMail object.
Set objNewMail = Server.CreateObject("CDONTS.NewMail")
' Set the body string for the message.
objNewMail.Body = _
"Wow, this message takes just a few lines of code."
' Set the importance for the message to high.
objNewMail.Importance = cdoHigh
' Send the message. For details about the Send method,
' see that section in this chapter.
objNewMail.Send "me@here.com","you@there.com", _
"This is the subject",,cdoHigh
%>Notes
If you do not set the Importance property, normal priority is
assumed. If you set the Importance property explicitly, then later
use the Importance argument in your call to the
Send method, the second value (the argument to
Send) is used and the earlier setting is ignored.
The underlying mail messaging system must support this feature or it is ignored.
Finally, you have no way of ascertaining how the recipient's mail messaging system will handle your priority settings.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access