MessagingException "Unknown SMTP host"
843830May 24 2004 — edited May 28 2004Hi
I am using JavaMail to send out emails from an ecommerce application. We are now deploying the application and are getting the following message....
nested exception is:
class javax.mail.MessagingException: Unknown SMTP host: smtp.thehost.com ;
nested exception is:
java.net.UnknownHostException: smtp.thehost.com
(note the server name is not actually smtp.thehost.com) - ive used that one here for confidentality.
If i try to telnet to smtp.thehost.com on port 25 i get the expected 220 and everything seems fine. Its like JavaMail cant see the mailhost when everything else can.
I am using :
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
on Redhat.
Any suggestions?
Regards
Lawrence