
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
nodemailer-sequelize-queue
Advanced tools
Install nodemailer-sequelize-queue using npm:
npm i nodemailer-sequelize-queue
or use yarn
yarn add nodemailer-sequelize-queue
import NodemailerSequelizeQueue from 'nodemailer-sequelize-queue'
const dbCredentials = {
// See https://www.npmjs.com/package/sequelize for more options
config: {
username: process.env.db_username || '',
password: process.env.db_password || '',
database: process.env.db_database || '',
host: process.env.db_host || '',
dialect: 'mysql' as any,
},
// Alternatively you can use existing sequelize instance
// sequelize: SequelizeInstane
}
// See https://www.npmjs.com/package/nodemailer for more options
const smtpCreds = {
host: process.env.smtp_host,
port: process.env.smtp_port ? process.env.smtp_port : 465,
}
const queue = new NodemailerSequelizeQueue(
dbCredentials,
smtpCreds,
{
// See https://www.npmjs.com/package/nodemailer for more expression options
expression: '*/1 * * * *',
// If -1, will try infinite times
maxAttempts: 2,
}
)
queue.initScheduler()
queue.queueMail({
email_from: 'test@gmail.com',
email_to: 'test@gmail.com',
subject: 'test subject',
html: 'test message',
attachments: [
{
// Not required (see Nodemailer filename prop)
filename: 'file.jpg',
// Local or remote url (see Nodemailer path prop)
path: 'https://picsum.photos/id/237/200/300',
},
]
})
The MIT License (MIT). Please see License File for more information.
FAQs
Queue for mails with nodemailer and cron scheduler
We found that nodemailer-sequelize-queue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.