@kunal_kumar/mail-sender-sdk
v1.0.9
Published
Send emails easily with just a few lines of code using this SDK. - This package uses Nodemailer to send emails. It's designed to help you complete features like your portfolio's contact page and similar functionalities.
Readme
Mail Sender SDK
Send emails easily with just a few lines of code using this SDK.
- This package uses Nodemailer to send emails. It's designed to help you complete features like your portfolio's contact page and similar functionalities.
📦 Installation
npm install mail-sender-sdkCode
- config setup
import { sendMail } from 'mail-sender-sdk';
sendMail.config({
SMTP_HOST: 'smtp.gmail.com',
SMTP_PORT: 587,
SMTP_SERVICE: 'gmail',
SMTP_MAIL: '[email protected]',
SMTP_PASSWORD: 'your-password'
});
- Send Mail
await sendMail.send({
email: '[email protected]',
subject: 'Test Mail',
message: 'Hey there!',
templatePath: 'path/to/your-template.ejs' // Optional
});
🛠 Features
Easy to use
EJS template support
Configurable
Built-in fallback template
Importent
- how to generate password you all guy's have the same question so check out this
2minvideo
