我从 SmptJs 复制了代码
btn.addEventListener('click',() => {
Email.send({
Host: 'smtp.gmail.com',
Username:'..@gmail.com',
Password:'a',
To:'..@gmail.com',
Subject:"matter?",
From: '..@gmail.com',
Body:'What?'
}).then(msg=>console.log(msg))
})
我收到以下错误:
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required. Learn more at - Fix: Try a different SMTP server
但是,在我的 Google 个人资料中打开了安全性较低的应用访问。这里可能有什么问题?