Unable to Capture Incoming Mail Event in Outlook
-
Hi, I have added an outlook addin project.Everything works fine. Whenever I receive a mail an Incoming mail event needs to be fired and hence I do my processing further. This works fine when the outlook is opened.But when my outlook is closed and if I receive the mails in the mean time, again when I open the outlook the "Incoming mail event" is not fired for all the new mail messages. What could be the problem? How Should I handle this ? Any Suggestions would be helpful. Thanks Satya
Today is a gift, that's why it is called the present.
-
Hi, I have added an outlook addin project.Everything works fine. Whenever I receive a mail an Incoming mail event needs to be fired and hence I do my processing further. This works fine when the outlook is opened.But when my outlook is closed and if I receive the mails in the mean time, again when I open the outlook the "Incoming mail event" is not fired for all the new mail messages. What could be the problem? How Should I handle this ? Any Suggestions would be helpful. Thanks Satya
Today is a gift, that's why it is called the present.
It sounds like your event's being hooked after the initial load (loading of new messages into the inbox folder). Once it's hooked, any new messages are handled properly. I'm not familiar with this, though. Maybe you can try and change the outlook settings so new messages aren't downloaded until you manually check them? (maybe that would give time for you hook to be in place?). Ideally the hook should happen before the download event.