1.0.2 • Published 3 years ago

node-mail-send v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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

  1. Introduce the package as follows

npm install node-mailer-send

const sendMail = require("node-mailer-send")

  1. Parameter options configuration item
const options = { 
    configUser:'xinyu230@foxmail.com', //Configure the qq mailbox account to be bound 
    configPass:'*****', //Configure the authorization code corresponding to the qq mailbox 
    from:'"Xinyu" < xinyu230@foxmail.com>', //Sender's name 
    email: "****@gmail.com", //Recipient's mailbox 
    title: "Mail title", //Sent mail title 
    content: "" , //Email content, html can be passed in 
}
  1. success ( v >= 1.0.1 )
   let callback = info => { 
      //success
      //console.log(info)
   }
  1. use

sendMail( options, callback )

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago