我有一个使用nodemailer通过gmail帐户发送邮件的应用程序。
尝试发送邮件Iam时出现以下错误。
Error: Invalid login: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbuO
534-5.7.14 5EMLVwmZwrXhm0GmISuEQ7zCdxNzbzQj1lhBQrhsYzz3wuzCo1d5ujnIXegmPNjsVHBbsW
534-5.7.14 hJVEKmfaJ76iQCzJG66lXWkt5nrhGq4S9_q0xKB2wihMfxUZjjGCQ1GTxJ7pm--1lXuuRQ
534-5.7.14 RhSKmpXLtjaOfW4rx5v2SWI3KM6wBsf_PTArx2t2HnPwGWOXI7QCYE3R-Q1sWqpIKfE0pd
534-5.7.14 HhtgREHkxcWGhDPJp-U-aWL3saJ93rOY-MwwEMjJntwmB_XtSa> Please log in via
534-5.7.14 your web browser and then try again.
534-5.7.14 Learn more at
534 5.7.14 https://support.google.com/mail/answer/78754 k75-v6sm725316itk.31 - gsmtp
at SMTPConnection._formatError (/user_code/node_modules/nodemailer/lib/smtp-connection/index.js:606:19)
at SMTPConnection._actionAUTHComplete (/user_code/node_modules/nodemailer/lib/smtp-connection/index.js:1335:34)
at SMTPConnection._responseActions.push.str (/user_code/node_modules/nodemailer/lib/smtp-connection/index.js:366:26)
at SMTPConnection._processResponse (/user_code/node_modules/nodemailer/lib/smtp-connection/index.js:762:20)
at SMTPConnection._onData (/user_code/node_modules/nodemailer/lib/smtp-connection/index.js:558:14)
at TLSSocket._socket.on.chunk (/user_code/node_modules/nodemailer/lib/smtp-connection/index.js:510:47)
at emitOne (events.js:96:13)
at TLSSocket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at TLSSocket.Readable.push (_stream_readable.js:134:10)
code: 'EAUTH',
response: '534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbuO\n534-5.7.14 5EMLVwmZwrXhm0GmISuEQ7zCdxNzbzQj1lhBQrhsYzz3wuzCo1d5ujnIXegmPNjsVHBbsW\n534-5.7.14 hJVEKmfaJ76iQCzJG66lXWkt5nrhGq4S9_q0xKB2wihMfxUZjjGCQ1GTxJ7pm--1lXuuRQ\n534-5.7.14 RhSKmpXLtjaOfW4rx5v2SWI3KM6wBsf_PTArx2t2HnPwGWOXI7QCYE3R-Q1sWqpIKfE0pd\n534-5.7.14 HhtgREHkxcWGhDPJp-U-aWL3saJ93rOY-MwwEMjJntwmB_XtSa> Please log in via\n534-5.7.14 your web browser and then try again.\n534-5.7.14 Learn more at\n534 5.7.14 https://support.google.com/mail/answer/78754 k75-v6sm725316itk.31 - gsmtp',
responseCode: 534,
command: 'AUTH PLAIN'
我尝试使用使用的用户名和密码登录gmail帐户,我可以登录,并且当我检查访问权限不安全的应用程序时,它已经启用。 https://accounts.google.com/b/0/DisplayUnlockCaptcha
还使用其他邮件ID进行了验证,可以通过nodemailer发送邮件,然后邮件可以正常工作。唯一的问题是应用程序中使用的邮件ID。
只想提一下这是否有用,所用的gmail帐户是从其他位置/时区创建的。
这个问题严重困扰。任何人都可以帮我解决这个问题。
谢谢。