Tool for sending email from a database

We are developing a webapp that should send emails written in Java / Groovy. We currently store each email in the database before we call the Java Mail APIs to send mail to our SMTP server.

I want to send a message asynchronously. I want to save the email, and then another process is to pick up the email and send it (and send it only once). Ideally, this process runs outside of my webapp.

Are there any tools that do this?

Update . This solution should prevent duplication of emails, and it needs to handle spikes in the email. I was hoping someone already wrote a standalone mail processor. (I'd rather not implement this myself.)

+3
source share
6 answers

Recommendations for using the cron job to read the database are fully functional.

Java (JMS). ( ) . -, , . , , , , . , , , . , , , .

Apache ActiveMQ JMS .

+4

Linux/Unix, cron , , . , , . , , webapp cron.

+1

cron db sendmail.

0

Quartz, ( cron), , . Grails, Quartz, Quartz Groovy.

0

Source: https://habr.com/ru/post/1771851/


All Articles