Fatal Error when using select properties of the MailItem, why?!

J

Jerry West

I am using VB6 & Outlook 2000 SR1.

I created a small utility that accesses certain properties of the MailItem
object. After I developed the utility I placed it on the target system. A
Win2K w/all service packs installed system running Outlook 2000 SR1. When
this utility runs on this system it works great until it accesses certain
select properties of the MailItem object. I don't know how many of the
MailItem properties cause this behavior but, for certain, these two do:

..SenderEmailAddress
..BodyFormat

Other properties, when accessed, create no issues and work just fine. In
fact, everything works fine on the system where I developed the utility. It
only fails on the target system. When it fails, when it access the
aforementioned properties, the failure is catastrophic. There is no run time
error. It completely crashes and disappears from memory.

Why does this happen? How can I correct this error?

Any help or insight would be GREATLY appreciated!!!

JW
 
D

Dmitry Streblechenko

Did you develop your addin on a system with Outlook 2003?
MailItem.SenderEmailAddress is a property introduced in Outlook 2003,
BodyFormat is available in Outlook 2002 and up. They both will fail in
Outlook 2000.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

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