A student writes:
"Error; message send failed:
java.net.ConnectException:Connection refused:
no further information"
This error happens in the public void send () method, when
opening the
socket. "socket = new Socket(serverHostName, smtpPort);
Ans: try to telnet to the mail server on port 25.
Type help for the commands:
linux.docjava.com{lyon}1: telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 linux.docjava.com ESMTP Sendmail 8.9.3/8.8.7; Fri, 27 Oct
2000 19:10:13 -040
0
help
214-This is Sendmail version 8.9.3
214-Topics:
214- HELO EHLO MAIL RCPT DATA
214- RSET NOOP QUIT HELP VRFY
214- EXPN VERB ETRN DSN
214-For more info use "HELP <topic>".
214-To report bugs in the implementation send email to
214- sendmail-bugs@sendmail.org.
214-For local information send email to Postmaster at your site.
214 End of HELP info
|