node-mail-send
v1.0.2
Published
send mail
Downloads
4
Readme
Node package that automatically sends emails
- This package relies on nodemailer for secondary packaging
- First obtain the authorization code from the qq mailbox
- Can be used directly after import
How to use
- Introduce the package as follows
npm install node-mailer-send
const sendMail = require("node-mailer-send")
- Parameter options configuration item
const options = {
configUser:'[email protected]', //Configure the qq mailbox account to be bound
configPass:'*****', //Configure the authorization code corresponding to the qq mailbox
from:'"Xinyu" < [email protected]>', //Sender's name
email: "****@gmail.com", //Recipient's mailbox
title: "Mail title", //Sent mail title
content: "" , //Email content, html can be passed in
}
- success ( v >= 1.0.1 )
let callback = info => {
//success
//console.log(info)
}
- use
sendMail( options, callback )