VB Macro fails on Digitally Signed Emails

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All, my VB macro in Outlook fails while accessing the body of digitally
signed emails. The following line,

mystring = MailItem.Body

fails giving error pop-up saying "Run-time error '-1040171007 (c2004001)':
The operation failed"

Can somebody pl give me a clue how to get around this ? thanks a bunch !
 
You cannot read signed messages from Body it will return an error. Check the
message class of the item and if it's a signed or encrypted message skip it.
 
Thanks Ken ! for replying back. I am using this Outlook VB code to load the
body of emails from our customers into our CRM application. Is there no way I
can get to the body of the digitally signed emails ? thanks..

regards,
Shiv Kotagal
 
Back
Top