1.0.1 • Published 10 months ago

@omarcs/easy-node-mailer v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

@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

1.0.1

10 months ago

1.0.0

10 months ago