配置lettransporter=nodemailer.createTransport({host:"smtp.163.com",//邮件服务的host,比如smtp.qq.comport:"465",//对应端口号(163邮箱)//开启安全连接secure:true,secureConnection:true,//使用SSL加密传输//用户信息auth:{user:"xxxx@163.com",pass:"XXXXXXX",//Apply打开smtp后得到的密码},});letmailOptions={from:"yyyy@yy",//发送邮件的账号(必须和上面的auth.user一样)to:"xxxx@xx",//接收邮件帐号subject:"zzzz",//标题html:"
