nicolaslopezj:email-queue

v0.0.1Published 10 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

Email Queue

Creates a queue for sending emails.

Works with multiple servers.

meteor add nicolaslopezj:email-queue

Usage

Replace Email.send(options) with EmailQueue.send(options).

1EmailQueue.send({
2  to: 'me@email.com',
3  from: 'app@email.com',
4  subject: 'Test email',
5  html: 'Hello'
6});

Options

1EmailQueue.noEmailsWaitTime = 1000; // Loop sleep time when there are no emails (default: 1000)
2EmailQueue.betweenEmailsWaitTime = 10; // Loop sleep time when there are emails (default: 10)