Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

MessagingException "Unknown SMTP host"

843830May 24 2004 — edited May 28 2004
Hi

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 25 2004
Added on May 24 2004
2 comments
569 views