xp_sendmail to send email with HIGH Importance in Outlook

  • Hi,

    Does anybody know if it's possible to configure xp_sendmail to send email with HIGH IMPORTANCE flag set with Outlook as the email client?

    I can't see how to do this in BOL.

    Thanks in advance.

    Regards,

    Andy

  • Can't do from SQL with xp_Sendmail.

    But maybe you can configure a rule from Outlook to send those mails with high importance, filtering by the subject, the sender of anything...

  • I've doing done digging and I think the only way it can be done is by using CDONTS.dll with sp_OACreate.

    I'll post the script here when I figure out how to do this.

  • If you use CDONTS, You can set the importance like this

    EXEC sp_OASetProperty      @iMsg, 'Importance', 2

    Hopr this helps!!!

     

  • ok thanks for the tip.

  • Anyone know how to set IMPORTANCE flag using CDOSYS instead?

    EXEC sp_OASetProperty @iMsg, 'Importance', 2 does not work.

    Thanks in advance.

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply