[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 372
  • 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

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

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