Is it possible to send mail with Javamail without authentication?
问题 I've been copying this code http://www.tutorialspoint.com/java/java_sending_email.htm and I get the error javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 465; nested exception is: java.net.SocketException: Connection reset at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1963) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654) at javax.mail.Service.connect(Service.java:345) at javax.mail.Service.connect(Service.java:226)