[Edit] This question is in regards to this article.[/Edit]
Hi, you code works fine , but i have a trouble reading the mails talking about "undelivery mail" you know when you get a mail when you send a mail to a wrong address.
When the loop try to read the system manager message (mail) it always get an exception talking about a Unable to cast a COM object 'System.__ComOb ject' to the inteface 'Microsoft.Offi ce.Interop.Outl ook.MailItem'.
I guess because this "notificati on " is not really a mail, but what kind of object it it?? Can I still using MAPI???
Thanks for you time
Hi, you code works fine , but i have a trouble reading the mails talking about "undelivery mail" you know when you get a mail when you send a mail to a wrong address.
When the loop try to read the system manager message (mail) it always get an exception talking about a Unable to cast a COM object 'System.__ComOb ject' to the inteface 'Microsoft.Offi ce.Interop.Outl ook.MailItem'.
I guess because this "notificati on " is not really a mail, but what kind of object it it?? Can I still using MAPI???
Thanks for you time
Comment