node mailer使用
安装 npm i nodemailer 新建mail.js文件 use strict; const nodemailer = require(nodemailer); const transporter = nodemailer.createTransport({ host: smtp.qq.com, port: 465, secure: true, auth: { user: '2...@qq.com', // 发送方的邮箱地址 pass: 'xwjfinrzncyeeacj' } }) const info = { from: 'Fre
下载地址
用户评论