nodemailer"nodemailer": "^4.6.8",
501QQ501
let transporter = nodeMailer.createTransport ({
host:Email.smtp.host,
port:465,
secure:true,
auth:{
user:Email.smtp.user,
pass:Email.smtp.pass,
}
})
//
let ko = {
code:Email.smtp.code(),
expire:Email.smtp.expire(),
email:ctx.request.body.email,
user:ctx.request.body.username
}
//
let mailOptions={
form:`""<${Email.smtp.user}>`,
}