Looking for some ideas on how to retrieve incoming emails (Exchange Server) for processing, like retrieve some information and invoke a web service. The service should constantly listening for new emails. So far we are looking into this using Spring Boot, and Apache Camel or Sprint Integration. Cannot find a clear example on this. Hope someone help on this.
Need of listening incoming emails using spring boot
1.5k Views Asked by user512514 At
2
There are 2 best solutions below
0
Amit Jain
On
Have a look at the this API - https://www.independentsoft.de/jwebservices/tutorial/findmessages1.html
You can create Spring scheduler to poll the exchange server to get the messages arrived in given time interval.
Related Questions in SPRING-BOOT
- Multi Tenancy in Spring - Partitioned Data Approach
- I have created a spring boot application with spring data JPA, Rest ,oracle and i am getting this ORA-00933: SQL command not properly ended
- Springboot: How to get an entity optional property and check null?
- How to create jasper report in spring boot rest api with jpa
- JSON Body is Not Passing Certain Strings
- Unresolved reference error is showing up after adding the dgs codegen plugin successfully
- Transaction silently rolled back
- JPA buddy error when generating JPA Entities from DB
- Migrating Spring Boot 2 to 3 throws org.glassfish.jaxb.runtime.v2.runtime.IllegalAnnotationsException: 3 counts of IllegalAnnotationExceptions
- Hibernate SQL Error: Missing FROM-clause entry for table "th1_1"
- Appwrite and / or Spring Boot Backend
- Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. I'm using Postgresql
- Driver com.microsoft.sqlserver.jdbc.SQLServerDriver claims to not accept jdbcUrl, ${SPRING_DATASOURCE_URL}: GitHub Actions
- springboot class org.hibernate.mapping.Bag cannot be cast to class org.hibernate.mapping.SimpleValue
- Spring security causing 404 with message "No static resource login"
Related Questions in SPRING-INTEGRATION
- Starting first job causes - Dispatcher has no subscribers for channel exception when declared multiple DirectChannels
- Azure Service Bus With Spring Integration Executor Channel Error Handling
- How does taskExecutor with Queue size set work with AcceptOnceFileListFilter filter for file input adapter
- Spring Integration JMS MessageDrivenChannelAdapter connection status
- Spring integration rotating server advice with SFTP outbound gateway
- Spring integration sftp new version upgrade issues
- Spring integration- Add check not to process inbound files older than 2 days and empty file
- JmsOutboundGateway retries to connect to mq -> GatewayReplyListenerContainer refreshConnectionUntilSuccessful (maxAttempts=unlimited)
- RequestHandlerCircuitBreakerAdvice doesn't work if somethings fail in descending Service activator
- Spring Integration and Spring Batch transaction manager collision
- Taking too long to send first message to JMS topic from Spring Integration
- Unable to process failed jobs in spring batch when using remote chunking
- Spring Integration Java DSL with Kafka
- Spring Integration nullChannel reference in Non-DSL
- Spring Integration 6.x http outbound gateway http uri variable expression not evaluating application properties
Related Questions in EXCHANGE-SERVER
- Directing proofpoint to ms exchange
- Allowing any member of a dynamic group to send as from a shared mailbox
- In Exchange 2019 on-prem, how do I configure send connectors to disable DNS lookups?
- List calculating each archive folders in Exchange On-Prem
- Share Outlook calendars with all members of specific security group
- Create exchange appointment using ews-javascript-api
- Microsoft outlook Caught exception in remote runspace creation, The WinRM service cannot process the request Redirect location reported
- Set-MailboxAutoReplyConfiguration not recognized even after installing as admin
- How to get the mailbox statistics data for more than 70,000 shared mailboxes in bulk
- Rails 7 send mail via Microsoft Exchange SMTP using oauth2
- Get .msg Copy by Criteria 'PR_INTERNET_MESSAGE_ID'
- MS Graph (Outlook) List messages 'ReceivedDateTime GT' operation failing by 1 second
- EWS Operation Item.Copy fails with 'full_access_as_app' permission
- EWS EmailMessage Move failed
- Can there be multiple DKIM and SPF records on one domain (alongside Microsoft Exchange hosted email)?
Related Questions in APACHE-CAMEL-MAIL
- Apache Camel route: How do I filter messages with attachments?
- Apache camel mailing - mail body showing all camel message header data
- AmbiguousMethodCallException Camel - Mail on Exchange.getMessage()
- Camel from(mail) loose headers?
- How to use OAuth 2 authentication with camel-mail
- Camel Route read Mail by call url IMAP Server, but will throw RuntimeCamelException if Content-Transfer-Encoding:quoted-printable
- Need of listening incoming emails using spring boot
- Delete Mail using camel without the consumer
- Apache Camel Mail: How to send email when we have Mail Host only?
- How to implement Apache Camel Dynamic Router Pattern for flow chart based execution process
- How to addAttachment on Camel 3.0
- Apache Camel Mail component receiver example not working
- How to send an email with an Inline Attachment to outlook with camel-mail
- How to use Apache camel RAW(value) for password
- IMAP Bounced Email : Original message is removed from bounced email
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
See Spring Integration documentation about e-mail support: https://docs.spring.io/spring-integration/docs/current/reference/html/mail.html#mail.
The
MailTestscan serve as a good sample how to configure Spring Integration channel adapters for e-mail polling: https://github.com/spring-projects/spring-integration/blob/main/spring-integration-mail/src/test/java/org/springframework/integration/mail/dsl/MailTests.java.The Spring Boot environment doesn't matter at this point: there is no any auto-configuration for mail polling, so everything should be transparent as long as as you use Spring Integration recommendations.
Unfortunately the official sample we have is still an XML, but should give you some ideas what and how should be configuration for IMAP or POP3: https://github.com/spring-projects/spring-integration-samples/tree/main/basic/mail