Connecting Tech Pros Worldwide Forums | Help | Site Map

answer to http://bytes.com/groups/asp/58305-setting-message-priority-cdosys

Newbie
 
Join Date: Jan 2008
Posts: 20
#1: Apr 4 '09
Just in case anyone is interested the code should be

Expand|Select|Wrap|Line Numbers
  1. <%
  2. Set myMail=CreateObject("CDO.Message")
  3. myMail.Subject="Sending email with CDO"
  4. myMail.From="USERNAME@SERVER.COM"
  5. myMail.To="USERNAME@SERVER.COM"
  6. myMail.TextBody="This is a message."
  7. 'myMail.AddAttachment "c:\mydocuments\test.txt"
  8. myMail.HTMLBody = "<h1>This is a message.</h1>" 
  9. myMail.Fields("urn:schemas:mailheader:importance").Value = "high"
  10. myMail.Fields("urn:schemas:mailheader:priority").Value = "urgent"
  11. myMail.fields.update
  12. myMail.Send
  13. set myMail=nothing
  14. %>
  15.  
The previous post didn't have the fields.update that's why the email never got its importance as High

Regards,

Reply

Tags
asp, cdo, importance, mail, priority