[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 376
  • Last Modified:

Listen for incoming email - Exchange Server

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
BobBarker_99
Asked:
BobBarker_99
  • 2
  • 2
1 Solution
 
zelron22Commented:
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
 
BobBarker_99Author Commented:
Right now its just a few, but eventually it coul d be several hundred
0
 
zelron22Commented:
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
 
BobBarker_99Author Commented:
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

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now