javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
nested exception is:
java.net.ConnectException: Connection refused: connect
本人发送的是qq邮箱,qq邮箱服务器已经开启了pop3/stmp
问一下怎么解决?
nested exception is:
java.net.ConnectException: Connection refused: connect
本人发送的是qq邮箱,qq邮箱服务器已经开启了pop3/stmp
问一下怎么解决?
解决方案:40分
smtp ip应该设成qq的smtp服务器IP吧。smtp.qq.com