Solved

Listen for incoming email - Exchange Server

Posted on 2009-05-11
4
351 Views
Last Modified: 2012-06-27
Right now my program checks (on a timer) for email from a list of inboxes.  I want to change it so that instead of checking (say every 5 minutes), an event is fired when a message is recieved.  This way I dont waste time/resources polling, and I dont have to wait up to 5 minutes to get an email.  

Currently I am checking messages using Exchange web services.  Is there a way I can listen for events with ews?  Or some other way of doing it?

Thanks,
Jonathan
0
Comment
Question by:BobBarker_99
  • 2
  • 2
4 Comments
 
LVL 15

Expert Comment

by:zelron22
ID: 24355050
How many mailboxes are we talking about?  If we're not talking about many, I'd say just crank it down to check every minute.
0
 

Author Comment

by:BobBarker_99
ID: 24355073
Right now its just a few, but eventually it coul d be several hundred
0
 
LVL 15

Expert Comment

by:zelron22
ID: 24357105
It will still probably be fine.  Exchange servers can have thousands of mailboxes, so I can't see how, unless the server isn't that great or it's misconfigured, having mailboxes polled once per minute would be much of an issue.  Even if you have 600, that's only 10 mailboxes per second.  So unless the mailboxes have a lot of traffic and lots of large files...
0
 

Accepted Solution

by:
BobBarker_99 earned 0 total points
ID: 24364558
It is possible to listen to events using exchange web services.
http://msdn.microsoft.com/en-us/library/aa579617.aspx details how to do it.  
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
Read this checklist to learn more about the 15 things you should never include in an email signature.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
how to add IIS SMTP to handle application/Scanner relays into office 365.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question