javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
 Technote (FAQ)
 
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".
 
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s): HP-UX
Software version: 4.0
Software edition:
Reference #: 1066256
IBM Group: Software Group
Modified date: Dec 9, 2003