bulk-mailer2
v1.0.19
Published
A brief description of what this project does and who it's for
Downloads
23
Maintainers
Readme
Project Title
A brief description of what this project does and who it's for
Bulk Mailer
A Node.js package for sending bulk emails using worker threads. This package ensures reliable email delivery with built-in error handling and validation.
Installation
To install the package, run:
npm install bulk-mailer2
Example:
const config = {
service: 'Gmail', // Example: 'Gmail', 'Yahoo', etc.
auth: {
user: '[email protected]',
pass: 'your-email-password'
}
};
const emailData = [
{
to: '[email protected]',
subject: 'Welcome to Our Service!',
text: 'Thank you for signing up. We hope you enjoy our service.',
html: '<p>Thank you for signing up. We hope you enjoy our service.</p>'
},
{
to: '[email protected]',
subject: 'Monthly Newsletter',
text: 'Here is your monthly newsletter. Enjoy!',
html: '<p>Here is your monthly newsletter. Enjoy!</p>'
}
// Add more email objects as needed
];
const { sendEmails } = require('bulk-mailer2');
sendEmails(config, emailData);