Welcome to FastForwardIt — a lightweight, flexible mailing utility built on top of Nodemailer. Effortlessly send direct, bulk, templated emails, and attachments with a simple, customizable API.
This guide will help you install the package and send your first email in just a few minutes.
Choose your preferred package manager:
# npm
npm install fastforwardit
# yarn
yarn add fastforwardit
# 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, // fallback "from" address
});
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);- Node.js version 16.x or higher
- Valid email provider credentials (e.g., Gmail, Outlook, custom SMTP)
- For Gmail: Generate an App Password if 2FA is enabled
- 📚 Reference: Explore all available methods and API details
🔥 That’s it! You’ve just sent your first email with FastForwardIt.
Happy mailing!