|
Problem |
You are receiving the exception,
"javax.mail.MessagingException: Could not connect to SMTP host: localhost,
port: 25;", when trying to use JavaMail® on any release of WebSphere®
Application Server V4.0. |
|
Cause |
WebSphere Application Server is trying to connect to a
Simple Mail Transfer Protocol (SMTP) server running under localhost
instead of the IP address of the SMTP server machine. |
|
Solution |
The solution to your problem is to modify the
mailTransferProtocol parameter in your JavaMail session. The
session is configured within the WebSphere Application Server
administrative console. If your value is "SMTP", it should be
changed to "smtp". |
|
|
|
|
|
|