1.0.1 ⢠Published 10 months ago
@omarcs/easy-node-mailer v1.0.1
@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: 'your_email@gmail.com',
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(
'your_email@gmail.com', // From
'receiver@example.com', // To
'Hello from easy mailer!', // Subject
'This is a test email sent using easy-node-mailer.' // Text
);š§ License
ISC