Skip to content

igolskyi/bullmq-mailbot-js

Repository files navigation

bullmq-mailbot-js

JavaScript port for example bullmq-mailbot on ES6+

codebeat badge

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.

Install

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 'test@email.com'

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 your_destination@email.com
# 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

About

JavaScript port for bullmq-mailbot

Resources

Stars

Watchers

Forks