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

  • Thread starter Thread starter Jerry West
  • Start date Start date
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
 
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
 
Back
Top