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
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