c# - NewMailEx event is not firing for each mail? -


i developing application, in need read content (mail body) of incoming mail. this, using below code trigger event, every time when new mail comes -

outlookapp.newmailex += new applicationevents_11_newmailexeventhandler(mailextractor.outlookapp_newmailex); 

but newmailex event not firing few mails. seems it’s not firing when 2 or 3 mails come @ same time. theoretically should fire each mail comes in ms outlook inbox.
using ms outlook 2010.

how can assure triggering of newmailex event each , every mail coming?

according documentation "this event (newmailex) passes list of entry ids of items received in inbox since last time event fired". if tested , doesn't that's count.

using itemadd not best choice may not fire on each mail can read in documentation. works on per folder basis if user has server rules moves mail different folder need handle multiple folders.

my solution to similar requirement using redemption library store class has onmessagecreatedex event fired on each item created in store.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -