How to capture email receiving event in MS Outlook 200X (office product) and MS Outlook Express usi

  • Thread starter Thread starter S. A. Hussain
  • Start date Start date
S

S. A. Hussain

Hi,

I am new to outlook add-in programming.

My first question is, how to capture email receiving event in MS
Outlook 200X (office product) and MS Outlook Express using C#.net?

My second question is, there is any technical programming (for add-in)
difference in MS Outlook 200X (office product) and MS Outlook Express
i.e. I need to write add-in (capture email receiving event)
separately?

Azhar H.
Synametrics Tech.
 
In Outlook you can use either Application.NewMail event or
MAPIFolder.Items.ItemAdd event (where MAPIFolder points to Inbox).
You cannot write addins for OE - the only API exposed by OE is Simple MAPI.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Dmitry Streblechenko said:
In Outlook you can use either Application.NewMail event or
MAPIFolder.Items.ItemAdd event (where MAPIFolder points to Inbox).
You cannot write addins for OE - the only API exposed by OE is Simple MAPI.

Can I use MAPI for both Office Outlook and Outlook Express? One code
applies on both?

Any learning material for developing & deploying MAPI Outlook add-in?

What is the best MAPI or COM-Addin?


Azhar H.
 
The only common API between Outlook and OE is Simple MAPI - it is a set of
12 functions that will allow you to read messages in the Inbox (but not any
other folder), display the address book etc. As the name suggests, it is
simple.
Extended MAPI on the other hand is the native Outlook API, whatever Outlook
does, chances are you will be able to do that as well as long as it does not
involve the Outlook UI. The downside is it can only be used from C++/Delphi,
not from VB. Plus the learning curve is very steep.
Start with http://www.slipstick.com to see what is available.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Thank Dmitry Streblechenko for your informative feedback. Please, tell
me I am correct or wrong:

"I need to capture email receiving event, parse this email and do
appropriate modification. No GUI elements needed (only message box in
particular case). Using C++ and MAPI, I will create an add-in; it
works with Outlook Express (versions 5 and 6) and MS Outlook (version
2000, 2002, and 2003)"

Correct or wrong?

Azhar H.
 
No, OE does not have addins. Again, you can pretty much only read the Inbox,
display the address book or send messages using Simple MAPI.
In case of Outlook 97/98/2000/2002/2003 you can create an Exchange Client
Extension (Extended MAPI only, C++/Delphi). In Outlook 2000/2002/2003, you
can create a COM addin (just about any language, VB. C++, Delphi, etc) and
track either Application.NewMail event or MAPIFolder.Items.ItemAdd event
(where MAPIFolder points to the Inbox). In case of Outlook 2003, you can
also use Application.NewMailEx event (passes the entry ids of new messages
to the event handler).

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