我使用 nodemailer 发送电子邮件,但它仅适用于电子邮件,不适用于 gmail
// 这是配置连接
TypeError: 'tuple' object is not callable
//nodemailer 配置
"nodemailer" : {
"host": "xxx.xxxxx.com",
"port": 587,
"secure":true,
"auth": {
"user": "myuser.com",
"pass": "password"
} ,
"tls": {
"rejectUnauthorized": false,
"minVersion": "TLSv1"
},
"debug":true,
"logger":true
},
"receivingEmail": {
"feedbackemail" : "abcd@gmailcom",
"contactemail" : "abcdef@gmail.com"
}
在这里我正在发送电子邮件,但无法发送 Gmail 帐户 Nodemailer 6.1.1 not working with NodeJs >=12 我试过了..你能告诉我错误在哪里吗?