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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • afromanam
    New Member
    • Jan 2008
    • 22

    #1

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

    Just in case anyone is interested the code should be

    Code:
    <%
    Set myMail=CreateObject("CDO.Message")
    myMail.Subject="Sending email with CDO"
    myMail.From="USERNAME@SERVER.COM"
    myMail.To="USERNAME@SERVER.COM"
    myMail.TextBody="This is a message."
    'myMail.AddAttachment "c:\mydocuments\test.txt"
    myMail.HTMLBody = "<h1>This is a message.</h1>" 
    myMail.Fields("urn:schemas:mailheader:importance").Value = "high"
    myMail.Fields("urn:schemas:mailheader:priority").Value = "urgent"
    myMail.fields.update
    myMail.Send
    set myMail=nothing
    %>
    The previous post didn't have the fields.update that's why the email never got its importance as High

    Regards,
Working...