@omarcs/easy-node-mailer
v1.0.1
Published
A simple and easy way to send email notifications with Node.js.
Maintainers
Readme
@omarcs/easy-node-mailer
📧 A simple Node.js wrapper around nodemailer for sending email notifications easily.
📦 Installation
npm install @omarcs/easy-node-mailer🚀 Setup
Before sending emails, you need to configure the transporter:
const { setup, sendMail } = require('@omarcs/easy-node-mailer');
// Setup with your email credentials
setup({
service: 'gmail',
user: '[email protected]',
pass: 'your_email_password',
});⚠️ Note: For Gmail, make sure "Less secure apps" access is enabled or use an App Password if 2FA is on.
✉️ Send Email
sendMail(
'[email protected]', // From
'[email protected]', // To
'Hello from easy mailer!', // Subject
'This is a test email sent using easy-node-mailer.' // Text
);🔧 License
ISC
