Your AdonisJS ecosystem, in the loop.
All insights
documentation

AdonisJS Mail Integration with AdonisJS Queue

· Developer impact : medium

Documentation was updated to include instructions on using AdonisJS Queue for sending emails asynchronously instead of BullMQ. It explains how to install and configure the queue package, route mail sending to a queue job, create a job to deliver emails, and run a dedicated worker for email jobs. This enhances the mail package's integration with the AdonisJS ecosystem by leveraging the official queue system.

What this means for your code

Developers can now use the official AdonisJS Queue package to handle email sending jobs, improving integration and potentially simplifying asynchronous mail delivery. This requires understanding how to configure the queue and create jobs for mail delivery.

  • Install and configure @adonisjs/queue if not already done
  • Route mail.sendLater() calls to a queue job by setting a custom messenger
  • Create a job class to process and send emails using mail.sendCompiled()
  • Register the mail messenger setup file as a preload
  • Run a dedicated queue worker for email jobs

Updated documentation

Original sources

AI-generated analysis based on the linked sources. Check the original documentation before changing your application.

Independent ecosystem watch. Sources linked in every insight.Built with AdonisJS · AI-assisted summariesBy Jérémy Chaufourier · chaufourier.fr