javax.net.ssl.SSLException when sending mail using JavaMail

前端 未结 5 1963
走了就别回头了
走了就别回头了 2021-01-01 12:12
javax.mail.MessagingException: Exception reading response;
  nested exception is:
        javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?         


        
5条回答
  •  天命终不由人
    2021-01-01 12:49

    I was facing this problem when using Gmail.

    In order to use Gmail I had to turn ON "Allow less secure apps".

    This Gmail setting can be found at https://www.google.com/settings/security/lesssecureapps after login the gmail account.

提交回复
热议问题