JavaScript port for example bullmq-mailbot on ES6+
See BullMQ Tutorial - Mailbot This tutorial shows how to easily create a bot for sending emails. The tutorial is divided into several parts, every part is located on a different branch so that you can navigate the code easily matching the tutorial text.
Just clone this repo and when inside the repo install the dependencies:
npm install
and then run the main service:
npm start
To test the service, in a separate terminal, run:
npm test '[email protected]'
You can check results with the fake SMTP service Ethereal by previewURL that logs in the console where the main service is running.
# > npm start
# Worker listening for jobs
# Completed job 1 successfully, sent email to [email protected]
# Preview URL: https://ethereal.email/message/X10VNAfHaE2Q4Y27YJkgU3B3LiUoCotYAAACqcDAPmq3oahUiWxXDmkS1GI
Note, in order to be able to send emails with this module you need to a local Redis™ instance running.
JavaScript implementation:
- part1
- part2
- part3