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

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

    If you don't want to use SSL, and you're using smtp instead of smtps try these settings

    mail.smtp.starttls.enable=false
    mail.transport.protocol=smtp
    

提交回复
热议问题