Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nodemailer-sequelize-queue

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodemailer-sequelize-queue

Check README.MD

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19
increased by5.56%
Maintainers
1
Weekly downloads
 
Created
Source

Nodemailer sequelize queue

This package allows to queue email and process it later by schedule using Nodemailer for sending mails, Sequelize for save queue to database and Node cron for scheduling.

Getting Started

  1. Install nodemailer-sequelize-queue using npm:
nodemailer-sequelize-queue
  1. Create NodemailerSequelizeQueue instance
const databaseConfig = {
    config: {
      username: 'username'
      password: 'password'
      database:'database'
      host: 'host'
      dialect: 'mysql', 
    },
    //sequelize - can be used if you have alredy using sequelize in your system
  },


const queue = new NodemailerSequelizeQueue(
  databaseConfig,
  smtpCreds,
  {
    expression: '*/1 * * * *',
    maxAttempts: 2,
  }
)

  1. Create add email to queue
queue.queueMail({
  email_from: 'test@gmail.com',
  email_to: 'test@gmail.com',
  subject: 'test subject',
  html: 'test message',
  attachments:[]
})

FAQs

Package last updated on 04 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc