【发布时间】:2020-12-13 15:53:37
【问题描述】:
当我使用 ethereal 电子邮件对其进行测试时,我的电子邮件系统工作正常,但现在我尝试将它与 Gsuite 一起使用,当我的服务器尝试从我的 google 工作区电子邮件发送时,我收到此错误。
我试过用google云平台教程https://developers.google.com/gmail/api/quickstart/nodejs 我仍然收到此错误 我也试过用谷歌云平台设置服务帐号。
可能是我做错了这些过程中的任何一个或其他原因, 我不确定要去哪里。
Error: Can't create new access token for user
at XOAuth2.generateToken (C:\Users\***\lib\xoauth2\index.js:184:33)
at XOAuth2.getToken (C:\Users\***\lib\xoauth2\index.js:123:18)
at SMTPConnection._handleXOauth2Token (C:\Users\***\lib\smtp-connection\index.js:1687:27)
at SMTPConnection.login (C:\Users\***\lib\smtp-connection\index.js:530:22)
at C:\Users\***\lib\smtp-transport\index.js:374:32
at SMTPConnection.<anonymous> (C:\Users\***\lib\smtp-connection\index.js:209:17)
at Object.onceWrapper (events.js:421:28)
at SMTPConnection.emit (events.js:315:20)
at SMTPConnection._actionEHLO (C:\Users\***\lib\smtp-connection\index.js:1303:14)
at SMTPConnection._processResponse (C:\Users\***\lib\smtp-connection\index.js:932:20)
at SMTPConnection._onData (C:\Users\***\lib\smtp-connection\index.js:739:14)
at TLSSocket.SMTPConnection._onSocketData (C:\Users\***\lib\smtp-connection\index.js:189:44)
at TLSSocket.emit (events.js:315:20)
at addChunk (_stream_readable.js:309:12)
at readableAddChunk (_stream_readable.js:284:9)
at TLSSocket.Readable.push (_stream_readable.js:223:10) {
code: 'EAUTH',
command: 'AUTH XOAUTH2'
}
对我如何解决此问题有任何建议吗?您是否需要更多信息来帮助我解决此问题?
【问题讨论】:
标签: javascript node.js email oauth-2.0 google-workspace