通过java程序发送邮件的问题
嗨,我想通过java程序从gmail发送邮件。当我尝试各种代码包括javatpoint它显示一个异常。例外是 -
Exception in thread "main" javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbvIk
534-5.7.14 cT546iWrmHVjdqIAu4bu64fGl37lt-4vX0RaunTx73hKE4HpZRQY7JSqatKptl8zIIy0XC
534-5.7.14 6mOUSMf5eDqgUnxViCrlbAb0pgjgVVJ4is21WFaCiKQgRMsNZrJ1zeZvMgOp4bHj1oAkRg
534-5.7.14 FIX765BcLczE1J3OnvGtMfKRU4qhJ9gCNU6pXNoiy9QJBQwraCqOhljfO8sI31DzDNSu9y
534-5.7.14 MYa-oA31ONPvip2QGCGj8Bxzzhbo> Please log in via your web browser and
534-5.7.14 then try again.
534-5.7.14 Learn more at
534 5.7.14 https://support.google.com/mail/answer/78754 y5sm11829169pbt.77 - gsmtp
任何想法我该怎么办?
答案 0 :(得分:0)
您可能应该转到Google account settings并停用两步验证密码,然后根据&#34;帐户权限&#34;启用&#34;访问不太安全的应用程序&#34;以及