Hi,
using the mail exchanger of the destination domain works in most cases. I
combined a DNS lookup to get the responsible destination server with the actual
sending of the mail.
In most cases ( yahoo, hotmail, aol ) there are several "mail exchangers" you
can use.
Although i found out that for example aol doesnt accept a sender address like
[EMAIL PROTECTED] or [EMAIL PROTECTED]
It seems as if aol accepts mail from these freemailers only if they are
delivered by the servers of yahoo or hotmail. But using a sender address like
[EMAIL PROTECTED] ( my address ) works.
I guess this is done to keep the spam down.
Another issue is the performance ... looking up a mailexchanger ... connecting
to it ... dealing with timeouts etc. its much slower than using a local smtp
realy.
If you are interested i can point you to the code of the DNS lookup of the
mailexchanger.
Bye,
Matthias K�mpel
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html