Retreiving signed / encrypted messages OL2003

G

Guest

Hi,

I used Outlook 2003 to progammatically read some signed/encrypted messages,
however it semms that the message collections can't return a mailitem object

oMsg = Outlook.Items.GetFirst

and returned an exception message of "Specified cast is not valid."

When I read a non-secure message, it does return a mailitem without exception.

I tried CType(Outlook.Items.GetFirst, Outlook.MailItem) and
DirectCast(Outlook.Items.GetFirst, Outlook.MailItem), but couldn't fix it.

Anybody have an ideal? Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top