Answered by:
Exchange Web Service(EWS) for polling mail in BizTalk

Question
-
Hi,
We have a requirement to poll mail from Exchange Mail box. BizTalk is having the POP3 adapter to poll mail but which is having some limitation and insecure.
Could you please let me know how can we achieve polling mail using EWS in BizTalk?
Thanks in Advance.
Thursday, December 21, 2017 6:36 AM
Answers
-
Hi John,
You can refer following few posts to get started.
1) Reading Email and Attachment From Microsoft Exchange Server
2) Exchange Web Services (EWS) in Exchange 2010 - MSDN Doco
3)Start using web services in Exchange
Still it will be easy if the POP is enabled on the mail server
Mandar Dharmadhikari
- Proposed as answer by Rachit SikroriaModerator Sunday, December 31, 2017 3:23 PM
- Marked as answer by Rachit SikroriaModerator Sunday, December 31, 2017 3:23 PM
Friday, December 22, 2017 4:53 AMModerator -
If we use POP3 adapter, The Exchange admin should enable the POP3 in Exchange server, but they are not willing to enable. So that we are looking other option.
Coming to Exchange Web Service(EWS), Do i need to write the exchange web service or can i use inbuilt EWS?
How do i poll the mail from Exhange server using EWS?
Could you please give me some reference link or document which will help me to start work.
Thanks in Advance
Hello,
You can make use of EWS Managed API. The below links will show you how to use the Exchange Web Services (EWS) Managed API to perform specific tasks with mailbox data on an on-premises Exchange server, Exchange Online, or Exchange Online as part of Office 365.
https://msdn.microsoft.com/en-us/library/office/dn567668(v=exchg.150).aspx
https://code.msdn.microsoft.com/office/Exchange-2013-101-Code-3c38582c
https://www.emailarchitect.net/eagetmail/kb/csharp.aspx?cat=2
Rachit Sikroria (Microsoft Azure MVP)
- Proposed as answer by Rachit SikroriaModerator Sunday, December 31, 2017 3:23 PM
- Marked as answer by Rachit SikroriaModerator Sunday, December 31, 2017 3:23 PM
Friday, December 22, 2017 10:11 PMModerator -
Hi,
Years ago, I had the same problem and I developed a BizTalk Custom Adapter with the old EWS 2007 API.
The adapter poll mail with the EWS API.
Maybe, you can develope the same using your current version of EWS.
- Proposed as answer by Rachit SikroriaModerator Sunday, December 31, 2017 3:23 PM
- Marked as answer by Rachit SikroriaModerator Sunday, December 31, 2017 3:23 PM
Monday, December 25, 2017 8:46 PM
All replies
-
In case you wish to poll mail from the Mail server POP adapter is the way to go.
Can you let us know what exactly do you mean by the limitations?
In case the POP adapter is not sufficient, consider polling the mails from the exchange service using .net client and then pass them onto the BizTalk for Processing\
Or call the exchange webservice and get the mails using the Normal Service call
Mandar Dharmadhikari
Thursday, December 21, 2017 7:11 AMModerator -
If we use POP3 adapter, The Exchange admin should enable the POP3 in Exchange server, but they are not willing to enable. So that we are looking other option.
Coming to Exchange Web Service(EWS), Do i need to write the exchange web service or can i use inbuilt EWS?
How do i poll the mail from Exhange server using EWS?
Could you please give me some reference link or document which will help me to start work.
Thanks in Advance
- Proposed as answer by Rachit SikroriaModerator Friday, December 22, 2017 10:08 PM
- Unproposed as answer by Rachit SikroriaModerator Friday, December 22, 2017 10:08 PM
Thursday, December 21, 2017 9:45 AM -
Thursday, December 21, 2017 6:00 PM
-
Hi John,
You can refer following few posts to get started.
1) Reading Email and Attachment From Microsoft Exchange Server
2) Exchange Web Services (EWS) in Exchange 2010 - MSDN Doco
3)Start using web services in Exchange
Still it will be easy if the POP is enabled on the mail server
Mandar Dharmadhikari
- Proposed as answer by Rachit SikroriaModerator Sunday, December 31, 2017 3:23 PM
- Marked as answer by Rachit SikroriaModerator Sunday, December 31, 2017 3:23 PM
Friday, December 22, 2017 4:53 AMModerator -
If we use POP3 adapter, The Exchange admin should enable the POP3 in Exchange server, but they are not willing to enable. So that we are looking other option.
Coming to Exchange Web Service(EWS), Do i need to write the exchange web service or can i use inbuilt EWS?
How do i poll the mail from Exhange server using EWS?
Could you please give me some reference link or document which will help me to start work.
Thanks in Advance
Hello,
You can make use of EWS Managed API. The below links will show you how to use the Exchange Web Services (EWS) Managed API to perform specific tasks with mailbox data on an on-premises Exchange server, Exchange Online, or Exchange Online as part of Office 365.
https://msdn.microsoft.com/en-us/library/office/dn567668(v=exchg.150).aspx
https://code.msdn.microsoft.com/office/Exchange-2013-101-Code-3c38582c
https://www.emailarchitect.net/eagetmail/kb/csharp.aspx?cat=2
Rachit Sikroria (Microsoft Azure MVP)
- Proposed as answer by Rachit SikroriaModerator Sunday, December 31, 2017 3:23 PM
- Marked as answer by Rachit SikroriaModerator Sunday, December 31, 2017 3:23 PM
Friday, December 22, 2017 10:11 PMModerator -
Hi,
Years ago, I had the same problem and I developed a BizTalk Custom Adapter with the old EWS 2007 API.
The adapter poll mail with the EWS API.
Maybe, you can develope the same using your current version of EWS.
- Proposed as answer by Rachit SikroriaModerator Sunday, December 31, 2017 3:23 PM
- Marked as answer by Rachit SikroriaModerator Sunday, December 31, 2017 3:23 PM
Monday, December 25, 2017 8:46 PM