[英]Connecting to POP3 server gives Unrecognized SSL message, plaintext connection issue
Im trying to connect to the POP3 server using the Java API with no SSL. 我试图使用不带SSL的Java API连接到POP3服务器。
I have set following properties; 我设置了以下属性;
mail.pop3.host :- pop.gmx.com
mail.pop3.password:-XXXX
mail.pop3.user:-XXXX
mail.pop3.port:- 110
But I'm getting the following issue: 但是我遇到了以下问题:
javax.mail.MessagingException: Connect failed;
nested exception is:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:148)
at javax.mail.Service.connect(Service.java:275)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:176)
What property did I miss? 我想念什么财产?
The page you cite clearly says: 您引用的页面清楚地表明:
POP port: 995 (alternative: 110)
TLS/SSL required: yes (if you use port 110: no)
IOW port 110 is a plaintext port. IOW端口110是纯文本端口。 So use 995 like it says. 因此,请使用995这样说。 Or plaintext. 还是纯文本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.