ashik-gmail-sender
Version:
A simple and easy-to-use Node.js package to send emails through Gmail using Nodemailer. Send emails securely with Gmail's SMTP server, including text and HTML emails.
24 lines (19 loc) • 537 B
Markdown
# Email Sender Package
A simple email sender using Nodemailer to send emails through Gmail.
## Install
```bash
npm install ashik-gmail-sender
```
## usage
```js
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!',
});
```