在 android 应用程序中发送邮件时 Gmail 帐户身份验证错误
Gmail account authentication error while sending mail in android application
当我尝试使用 gmailapi 从 android 应用程序发送邮件时出现以下错误。
"Could not connect to SMTP host: relay.jangosmtp.net, port: 465, response: -1"
自 2015 年以来 google 不允许 "less secure apps" 通过其 SMTP 端口连接(这意味着您需要 ssl 或 tls 证书)。
要允许他们,您可以试试这个:https://support.google.com/accounts/answer/6010255?hl=en
当我尝试使用 gmailapi 从 android 应用程序发送邮件时出现以下错误。 "Could not connect to SMTP host: relay.jangosmtp.net, port: 465, response: -1"
自 2015 年以来 google 不允许 "less secure apps" 通过其 SMTP 端口连接(这意味着您需要 ssl 或 tls 证书)。
要允许他们,您可以试试这个:https://support.google.com/accounts/answer/6010255?hl=en