I can't get these to work either, even when I set importance to high and
priority to urgent, the header comes in with both stating normal. I think
it might depend on the SMTP server, whether it preserves the values or
ignores them. Here is the code I used (I tried setting the imp/pri on both
config and message):
<!--
METADATA
TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library"
-->
<%
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "<mail server>"
.Item(cdoPriority) = cdoPriorityUrgent
.Item(cdoImportance) = cdoHigh
.Update
End With
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.Fields(cdoPriority) = cdoPriorityUrgent
.Fields(cdoImportance) = cdoHigh
.From = "fr**@from.com"
.To = "to@to.com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>
Header still says:
Importance: normal
Priority: normal
--
http://www.aspfaq.com/
(Reverse address to reply.)
"[MSFT]" <lu******@online.microsoft.com> wrote in message
news:PR**************@cpmsftngxa06.phx.gbl...
Hi Peter,
I think it should be:
oCdoMsg.Fields("urn:schemas:mailheader:priority"). Value = 1
Here is related document:
http://msdn.microsoft.com/library/de...us/wss/wss/_cd o_schema_mailheader_priority.asp?frame=true
http://msdn.microsoft.com/library/de...us/wss/wss/_cd o_cdopriorityvalues_enum.asp
Luke