index.js
const nodemailer=require("nodemailer")
let sendEmail=function () {
var transporter = nodemailer.createTransport({
host: "smtp.qq.com",
port: 465,
secure: true, // use SSL
auth: {
user: '[email protected]',
pass: '密码'
}
});// setup e-mail data with unicode symbols
var mailOptions = {
from: '"Test
04-14 13:35