Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: Javamail not working with non-Outlook Express users.

David Wall

2004-01-14

Replies:

You need to check what you are doing. It makes no sense that a text email gets an HTTP error. What the heck is it doing coming back to your Tomcat anyway? Email is sent via SMTP.

I don't know what you are trying to do with the following code fragment:
> Properties props = new Properties();
>           props.put("smtp.covad.net", "XXXXXX-YYYYYY1");

Normally, you'd do something like:

Properties prop = new Properties();
prop.put("mail.smtp.host","mail.yourhost.com");

The SMTP server (mail.yourhost.com above) takes care of delivery, so there's no need to worry about which email client a person uses.

Perhaps you meant (if that's the smtp server you use to send email out):

prop.put("mail.smtp.host","smtp.covad.net");

Good luck,
David
©2008 junlu.com - Jax Systems, LLC, U.S.A.