
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
mailQuick is a versatile email sending module for Node.js that supports multiple email service providers. Whether you use MailerSend, SendGrid, Mailjet, Brevo, or Postmark, mailQuick simplifies sending emails through a unified interface. 🚀
To get started with mailQuick, you need to install it via npm:
npm install mailquick
To use mailQuick, you'll need to initialize it with your email service provider's credentials. Here's a brief guide on how to configure each supported provider:
Here's how you can set up mailQuick for different providers:
const mailQuick = require('mailquick');
// Initialize with provider and credentials
const mailer = mailQuick.init({
provider: 'sendgrid',
apiKey: 'your-sendgrid-api-key',
from: 'your-email@example.com',
fromName: 'Your Name'
});
// Send an email
mailer.send({
to: 'recipient@example.com',
subject: 'Hello World',
html: '<p>This is a test email sent using mailQuick!</p>'
}).then(response => {
console.log(response); // { status: true, message: 'Mail sent' }
}).catch(error => {
console.error(error); // { status: false, message: 'Mail not sent' }
});
const mailer = mailQuick.init({
provider: 'mailersend',
apiKey: 'your-mailersend-api-key',
from: 'your-email@example.com',
fromName: 'Your Name'
});
const mailer = mailQuick.init({
provider: 'sendgrid',
apiKey: 'your-sendgrid-api-key',
from: 'your-email@example.com',
fromName: 'Your Name'
});
const mailer = mailQuick.init({
provider: 'mailjet',
apiKey: 'your-mailjet-api-key',
apiSecret: 'your-mailjet-api-secret',
from: 'your-email@example.com',
fromName: 'Your Name'
});
const mailer = mailQuick.init({
provider: 'brevo',
apiKey: 'your-brevo-api-key',
from: 'your-email@example.com',
fromName: 'Your Name'
});
const mailer = mailQuick.init({
provider: 'postmark',
apiKey: 'your-postmark-api-key',
from: 'your-email@example.com',
fromName: 'Your Name'
});
const mailer = mailQuick.init({
provider: 'smtp',
apiKey: 'your-email-password-or-app-password',
from: 'your-email@example.com',
fromName: 'Your Name',
server: 'smtp.your-email-provider.com',
port: 465,
secure: true
});
Use the send method to dispatch an email. The required parameters are:
to - Recipient email address.subject - Email subject.html - Email body in HTML format.Example:
mailer.send({
to: 'recipient@example.com',
subject: 'Welcome!',
html: '<p>Thanks for signing up with mailQuick!</p>'
}).then(response => {
console.log(response); // { status: true, message: 'Mail sent' }
}).catch(error => {
console.error(error); // { status: false, message: 'Mail not sent' }
});
If something goes wrong, mailQuick will return an object with status: false and a corresponding error message. Always handle these responses to ensure proper error management.
We welcome contributions to mailQuick! If you have suggestions, bug fixes, or improvements, please submit a pull request or open an issue on our GitHub repository.
mailQuick is licensed under the MIT License. See LICENSE for more details.
Special thanks to the maintainers and contributors of the email service providers' APIs for making this package possible.
FAQs
A Node.js library for sending E-Mail through multiple providers.
The npm package mailquick receives a total of 3 weekly downloads. As such, mailquick popularity was classified as not popular.
We found that mailquick demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.