Use JavaMail instead.. The SmtpClient (at least if that is the one in com.sun or sun.) is as far as I know not even supported.. Never had any problems with that, unless the jvm couldn't find a host in the first place, it tends to never find it again.
Mvgr, Martin > -----Original Message----- > From: felix [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 13, 2001 10:14 PM > To: Tomcat Users List > Subject: UnknownHostException thrown from SmtpClient > > > > > Migrating some old code that uses the sun SmtpClient to a new server. > > the SmtpClient throws an UnknownHostException, I'm using the i.p. > address of > the mail server, which is actually on the same box. > > i tried 127.0.0.1 and localhost and the named host (but not yet dns > transferred). > > all the same exception. the mailserver (exim) is not even being > contacted. > > i'm thinking its tomcat or jvm not knowing a dns host yet ? > > clues anyone ? > > I found one person relating the same thing: > > they moved stuff from one tomcat(nt) to tomcat(linux) using the same smtp > server and it no longer worked. couldn't find the server. > > > thanks! > > > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>