Or you could just use the Java Mail APIs which are clean, clear and should
do these things for you. It is simply INCORRECT to think that the hostname
in an email address is the same as the host that will receive the email.
You should have an SMTP server where you can send mail to and let the mail
system do the delivering, unless you want to replicate all of the complexity
of the mail world per the spec mentioned below...
David
>Some mail servers will only accept mail from a certain address or domain.
>The DNS MX record should list where to actually send the mail for a given
>domain address, but I'm not sure how to retrieve this information. One way
>around it may be to send the mail to a know SMTP server (like your ISP's)
>and let it route it to it's destination. You might want to look at the
>information on relaying in the RFC 821 spec.
> (*Chris*)
___________________________________________________________________________
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