Posts Tagged ‘MAPI’

Outlook Object Model: 4 things developers might not know

Today, I will cover 4 topics of Outlook development tasks that are not commonly known or mainstream. You can argue about how well known each task is but you will lose. These tasks are not commonly known because you don't always need them. They are beyond the basics. But, if you master them, you can look upon other Outlook developer with a snooty little smirk... Read the rest of this entry →

Outlook NewMail event and Extended MAPI: C# example

In part 3 of the Outlook NewMail Unleashed series, we will be moving the theory aside and rather focus on the code. Let us write an add-in using Extended MAPI and Add-in Express 2010 for Office .net ... Read the rest of this entry →

Outlook NewMail event: solution options

In part one of the Outlook NewMail Unleashed series we took a closer look at the challenge of effectively handling a new e-mail in Outlook. We've seen that the obvious choice of NewMail, NewMailEx and Items.ItemAdd is simply not the answer. In this post we'll investigate possible work-arounds and alternatives to NewMail, NewMailEx and Items.ItemAdd... Read the rest of this entry →

HowTo: Get an attachment size in Outlook 2000 – 2007, part 2

In the previous sample, I showed how to get the PR_ATTACH_SIZE Extended MAPI property that returns the size of an Attachment object. To be more precise, it returns the size of the attached file and the size of some internal info. In most cases that makeweight does not matter at all... Read the rest of this entry →

HowTo: Get an attachment size in Outlook 2000 – 2010, part 1

The new Size property of the Attachment object was introduced in the Outlook 2007 Object Model. There exist at least two methods of getting the attachment size in older Outlook versions... Read the rest of this entry →

HowTo: Avoid limitations of Microsoft Outlook ItemAdd event

The description of the ItemAdd event is laconic and compact - "Occurs when one or more items are added to the specified collection. This event does not run when a large number of items are added to the folder at once." But what is really implied by the words "a large number of items"?... Read the rest of this entry →

HowTo: Convert Exchange-based email address into SMTP email address

It would be true to say "get" rather than "convert". There could be only one right way – to use Extended MAPI. Another method is described in the MSDN article: How to retrieve alternate e-mail addresses by using CDO, but we will not see into this approach, because CDO is optional in Outlook 2003 and is absent completely in Outlook 2007... Read the rest of this entry →

Don't stumble over a stone working with the PropertyAccessor and StorageItem classes in Outlook 2007

There are plenty of articles in the web dwelling upon new possibilities of Outlook 2007 programming. Among the most frequently discussed issues is how to access and set various MAPI properties and how the PropertyAccessor can help with this. Let's have a close look at the new classes which were introduced in Outlook 2007 and […]... Read the rest of this entry →

Handling NewMail, NewMailEx and ItemAdd Outlook events in .NET

Sometimes you need to process incoming e-mails and meeting requests in order to retrieve sender data for your CRM, to save attachments to your Document Management System (DMS), to process automated e-mails, or to convert selected incoming messages to plain text. Whenever you need to track incoming e-mails, you face the following Outlook events: NewMail, NewMailEx, and ItemAdd. ... Read the rest of this entry →

How to get access to hidden Outlook items via Extended MAPI?

Microsoft Outlook and Exchange are among the most popular applications utilizing MAPI. Add-in Express provides Outlook developers with a free component, MAPI Store Accessor, that hides MAPI complexities to provide developers with easy access to MAPI features.... Read the rest of this entry →

Have any questions? Ask us right now!