1.0.0 • Published 5 months ago

ashik-gmail-sender v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

Email Sender Package

A simple email sender using Nodemailer to send emails through Gmail.

Install

npm install ashik-gmail-sender

usage

const sendEmail = require('ashik-gmail-sender');
or
import sendEmail from 'ashik-gmail-sender';

sendEmail({
  user: 'your-email@gmail.com', // your Gmail email
  pass: 'your-email-password',   // your Gmail password or OAuth2 token
  to: 'recipient-email@example.com',
  subject: 'Hello from my package',
  text: 'This is a test email sent using my NPM package!',
});