![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 ! |
Ads |
#2
|
|||
|
|||
![]()
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. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Outlook Dabbler" Outlook wrote in message news ![]() 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 ! |
#3
|
|||
|
|||
![]()
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 "Ken Slovak - [MVP - Outlook]" wrote: 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. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Outlook Dabbler" Outlook wrote in message news ![]() 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 ! |
#4
|
|||
|
|||
![]()
Not from the Body or any of the other standard methods.
What you want is actually an attachment on the item. See http://www.tech-archive.net/Archive/...5-01/0180.html for a little more information about that. Also see http://support.microsoft.com/?kbid=194623 for information about detecting signed/encrypted information. It's a CDO 1.21 article but applies to the Outlook object model also. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Outlook Dabbler" wrote in message ... 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 |
#5
|
|||
|
|||
![]() Quote:
_MailItem newMail = ((_MailItem)eMail).Forward(); newMail.Close(OlInspectorClose.olDiscard); newMail = null; After it the mail is opened in ui mode and all properties can be accessed. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Running Macro | Sanjeev kumar Kodavalla | Outlook - Using Forms | 2 | March 5th 06 08:24 PM |
Outlook Startup fails | Tomk | Outlook - Installation | 0 | March 3rd 06 04:41 PM |
iCal import fails | Otto | Outlook - Calandaring | 3 | March 1st 06 04:12 PM |
Running a macro | SuperSlueth | Outlook - Using Forms | 15 | February 7th 06 10:51 PM |
Detecting signed/encrypted mail messages | [email protected] | Add-ins for Outlook | 1 | January 29th 06 10:30 PM |