tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject RE: UnknownHostException thrown from SmtpClient
Date Tue, 13 Nov 2001 21:48:48 GMT


On Tue, 13 Nov 2001, Martin van den Bemt wrote:

> Date: Tue, 13 Nov 2001 22:49:12 +0100
> From: Martin van den Bemt <martin@isallineed.org>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> Subject: RE: UnknownHostException thrown from SmtpClient
>
> I like the idea of a queue which holds the mails and tries until it works
> (didn't have time to do that myself, just catching everything and not
> throwing any exceptions, just logging to a mail log file if it doesn't
> succeed).

That's exactly what your local SMTP server (sendmail or whatever) does for
you.  Why reinvent the wheel?

> So it depends on your time you can invest in it I guess..
> I read somewhere that tomcat 4 has build in support for javamail and offers
> services to send mail via javamail. I think searching on javamail on the
> online backups of mailinglist backup might turn up some info. (eg
> http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2)
>

See my previous response for a pointer to the Tomcat 4 docs about this.

> Have fun remodeling ;))
>
> Mvgr,
> Martin
>

Craig


>
> > -----Original Message-----
> > From: felix [mailto:felix@crucial-systems.com]
> > Sent: Tuesday, November 13, 2001 10:43 PM
> > To: Tomcat Users List
> > Subject: Re: UnknownHostException thrown from SmtpClient
> >
> >
> >
> > Thanks, I think that's what needs to be done anyway.
> >
> > on a related topic,
> > I've been trying to figure out if JavaMail threads / forks when it sends.
> >
> > Or if its worth writing an Emailer (implements Runnable) that would just
> > take care of its business and let tomcat go on its merrry way.
> >
> > the user doesn't need to know what we are emailing or if it succeeds.
> >
> > anybody have any thoughts on that ?  extra thread overhead ? waste of my
> > time ?
> >
> >
> > > From: "Martin van den Bemt" <martin@isallineed.org>
> > > Reply-To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> > > Date: Tue, 13 Nov 2001 22:21:23 +0100
> > > To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> > > Subject: RE: UnknownHostException thrown from SmtpClient
> > >
> > > 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
> >
> >
> > --
> > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message