Set Email Priority cum Importance Via ASP Using CDO.Message
Works for me:
Set objMessage = Server.CreateObject("CDO.Message")
'YADDA YADDA YADDA
objMessage.Fields("urn:schemas:httpmail:Importance").Value = 2
objMessage.Fields("urn:schemas:mailheader:importance").Value = "High"
objMessage.Fields("urn:schemas:httpmail:priority").Value = 1
objMessage.Fields("urn:schemas:mailheader:priority").Value = 1
objMessage.Fields("urn:schemas:mailheader:X-MSMail-Priority").Value = "High"
objMessage.Fields("urn:schemas:mailheader:X-Priority").Value = 1
objMessage.Fields("urn:schemas:httpmail:X-MSMail-Priority").Value = "High"
objMessage.Fields("urn:schemas:httpmail:X-Priority").Value = 1
'IMPORTANT!
objMessage.Fields.update
pal, this info was SO cool. Thank you very much! :D
ReplyDeleteI've been searching around for about an hour for this. Worked great! Thanks!
ReplyDeleteAlways glad to be of help when it comes to helping people in these kinds of situations!
ReplyDeleteShame that it took an hour to find my post though. What keywords were you searching for? Hopefully I can try and make my post a bit more visible.
I know this is an old blog, but I've been searching for an answer to this same solution specific to exchange servers (2007) and have used every angle of:
ReplyDeleteobjemail.Fields("urn:schemas:httpmail:Importance").Value = 2
objemail.Fields("urn:schemas:httpmail:priority").Value = 1
objemail.Fields("urn:schemas:mailheader:importance").Value = "High"
objemail.Fields("urn:schemas:mailheader:priority").Value = 1
objemail.Fields("urn:schemas:mailheader:X-MSMail-Priority").Value = "High"
objemail.Fields("urn:schemas:mailheader:X-Priority").Value = 1
objemail.Fields("urn:schemas:httpmail:X-MSMail-Priority").Value = "High"
objemail.Fields("urn:schemas:httpmail:X-Priority").Value = 1
and nothing is working. Suggestions?
oh boy. if only i could remember :).
ReplyDeleteyou did do this line too right? this is the important one:
objemail.Fields.update