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

前端 未结 5 1978
走了就别回头了
走了就别回头了 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:30

    You are trying to do an SSL connection to a non-SSL port. This will not work.

    If you want to send mail through gmail, see the FAQ: http://java.sun.com/products/javamail/FAQ.html#gmail

提交回复
热议问题