Read outlook mails dynamically via APACHE CAMEL

Ashwin P.S 1 Reputation point
2021-11-22T14:15:40.307+00:00

HI Team,

We need a support to integrate Apache camel with Microsoft Graph API to read mails dynamically as soon as we receive. Apache Camel provides support for IMAP / POP3 / SMTP. Please help us on this integration. Kindly let us know if any of these protocols are supported. For Authentication we'll be working with MailAuthenticator. Please provide support to pass the generated token into the MailAuthenticator to receive Emails Dynamically

Please find the Apache Camel Documentation Url - https://camel.apache.org/components/3.13.x/mail-component.html

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Glen Scales 4,446 Reputation points
    2021-11-22T22:44:29.45+00:00

    Office365 supports IMAP the connection details are https://support.microsoft.com/en-us/office/pop-imap-and-smtp-settings-8361e398-8af4-4e97-b147-6c6c4ac95353 , However this isn't the Graph API and generally most people disable or don't allow IMAP and POP anymore due to the security issues around it. The Microsoft Graph API is just a REST API so you want to use it in Camel then you would consume it like any other Rest API eg https://www.javainuse.com/camel/camel-consume-rest , there is Java SDK that you should be able use https://github.com/microsoftgraph/msgraph-sdk-java to make doing the integration a lot easier.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.