A lightweight, flexible mailing utility built on top of Nodemailer
Send direct, bulk, templated emails, manage groups, schedule delivery, and handle attachments โ all with a simple, customizable API.
๐ Documentation โข ๐ Quick Start โข ๐ก Installation โข ๐ค Open For Contribution
๐ Real-time NPM Statistics
๐ NPM Package Stats (npm-stat.com)
๐ Download Trends (npmtrends.com)
| ๐ Metric | ๐ข Current Value |
|---|---|
| ๐ฆ Current Version |
|
| ๐ฅ Total Downloads |
|
| ๐ Weekly Downloads |
|
| ๐ฆ Bundle Size |
|
| ๐ License |
|
๐ View detailed analytics:
npm-stat โข
npmtrends โข
bundlephobia
|
|
Choose your preferred package manager:
# Using npm
npm install fastforwardit
# Using yarn
yarn add fastforwardit
# Using pnpm
pnpm add fastforwarditSend your first email in just a few lines:
import { Mail } from "fastforwardit";
async function main() {
const mailer = new Mail({
transporterOptions: {
service: "gmail",
auth: {
user: process.env.EMAIL_USER, // your email
pass: process.env.EMAIL_PASS, // your app password
},
},
defaultFrom: process.env.EMAIL_USER,
});
await mailer.send({
to: "receiver@example.com",
subject: "Hello from FastForwardIt ๐",
text: "This is a test email sent using FastForwardIt library.",
});
console.log("โ
Email sent successfully!");
}
main().catch(console.error);๐ก Tip: For more advanced examples, check out our Getting Started Guide
๐ Template-based Emails
await mailer.sendTemplate({
to: "user@example.com",
template: "welcome",
variables: {
name: "John Doe",
company: "Acme Corp"
}
});๐ฅ Group Management
// Create groups and send bulk emails
await mailer.createGroup("team", ["john@company.com", "jane@company.com"]);
await mailer.sendToGroup("team", {
subject: "Weekly Update",
html: "<h1>Hello Team!</h1>"
});โฐ Scheduled Emails
// Schedule email for later
await mailer.schedule({
to: "client@example.com",
subject: "Scheduled Reminder",
text: "This is your scheduled reminder!",
sendAt: new Date("2024-12-25T10:00:00Z")
});| Requirement | Version | Notes |
|---|---|---|
| Node.js | โฅ 16.x | LTS recommended |
| Email Provider | Any SMTP | Gmail, Outlook, custom SMTP |
| Gmail Users | App Password | Required if 2FA is enabled |
| ๐ Guide | ๐ Description |
|---|---|
| Getting Started | Complete setup and basic usage |
| Installation Guide | Detailed installation instructions |
| Documentation | Full method documentation |
We welcome contributions! Here's how you can help:
- ๐ด Fork the repository
- ๐ฟ Create a feature branch (
git checkout -b feature/amazing-feature) - ๐ป Make your changes and add tests
- โ
Run tests (
npm test) - ๐ Commit your changes (
git commit -m 'Add amazing feature') - ๐ Push to your branch (
git push origin feature/amazing-feature) - ๐ Open a Pull Request
Please open an issue with:
- Bug description
- Steps to reproduce
- Expected vs actual behavior
- Environment details
We'd love to hear your ideas! Open an issue and tell us about the feature you'd like to see.
This project is licensed under the MIT License - see the LICENSE file for details.
โญ Star this repo โข ๐ฆ NPM Package โข ๐ Package Analytics โข ๐ฆ Follow us on Twitter
Made with ๐ by Saish