Re: WOMailDelivery Reliability Issues
Re: WOMailDelivery Reliability Issues
- Subject: Re: WOMailDelivery Reliability Issues
- From: Petite Abeille <email@hidden>
- Date: Thu, 7 Oct 2004 10:09:00 +0200
On Wed, 6 Oct 2004 13:12:07 -0500 (CDT), Brian Allen
<email@hidden> wrote:
> We use the WOMailDelivery capability to send simple plain text emails with
> the composePlainTextEmail method.
As mentioned by Chuck, don't bother with WOMailDelivery. Sun's or
GNU's JavaMail [1] [2] is the way to go.
>
> Frequently, it throws an exception of unknown host. The host was set in
> the application with the setSMTPHost using a following form:
>
> setSMTPHost("mail.hsval.com")
>
> I can repeatedly run the application with different results. The DNS and
> mail server are on the same machine if that is a factor.
>
InetAddress has an unfortunate tendency to cache DNS lookups forever.
Check the networkaddress.cache.ttl system property [3].
Alternatively, and if you feel adventurous, you don't necessarily need
to rely on an external SMTP server. You can be your own:
http://archives.java.sun.com/cgi-bin/wa?A2=ind0405&L=javamail-interest&F=&S=&P=1882
http://zoe.nu/misc/jmta.tgz
Cheers,
PA.
[1] http://java.sun.com/products/javamail/
[2] http://www.gnu.org/software/classpathx/javamail/javamail.html
[3] http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden