javax.mail.AuthenticationFailedException: failed to connect, no password specified?

前端 未结 14 2021
广开言路
广开言路 2020-12-17 10:46

This program attempts to send e-mail but throws a run time exception:

javax.mail.AuthenticationFailedException: failed to connect, no password specified?
         


        
14条回答
  •  悲&欢浪女
    2020-12-17 11:14

    Turn On "Access for less secure apps" in Security setting for the gmail account.(from mail), see the below link for references

    http://www.ghacks.net/2014/07/21/gmail-starts-block-less-secure-apps-enable-access/

提交回复
热议问题