Re: Tomcat 6 and javamail

2008-11-27 Thread Lyallex
OK, firstly thanks for the feedback so far Let me be quite clear about one thing. I am using the same mail server in both cases. Tomcat and Eclipse are running on the same physical device with the same IP address. If I configure a JavaMail session as described in the following resource

Re: Tomcat 6 and javamail

2008-11-27 Thread Rainer Frey
On Thursday 27 November 2008 12:52:56 Lyallex wrote: (It would be easier to answer if you'd stop top quoting - but I won't correct this whole mail) OK, firstly thanks for the feedback so far Let me be quite clear about one thing. I am using the same mail server in both cases. Tomcat and

Re: Tomcat 6 and javamail

2008-11-27 Thread Lyallex
2008/11/27 Rainer Frey [EMAIL PROTECTED]: On Thursday 27 November 2008 12:52:56 Lyallex wrote: (It would be easier to answer if you'd stop top quoting - but I won't correct this whole mail) Well that's most kind of you, you are being very patient. I think I need to take a step back here.

RE: Tomcat 6 and javamail

2008-11-27 Thread Caldarale, Charles R
From: Lyallex [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6 and javamail The mail server does not require authentication when accessed from the office subnet. The server guys have confirmed this. Or is it that your mail server is configured to accept the network signon that each

Re: Tomcat 6 and javamail

2008-11-27 Thread Don Millhofer
Hi Lyallex, for everybody that is still struggling with this issue, here is a base non-authentication email class. Once you get this working start adding the special features you need. This worked with my hosting provider (Kattare) who were absolutely worthless in providing any guidance,

Re: Tomcat 6 and javamail

2008-11-27 Thread Lyallex
2008/11/27 Caldarale, Charles R [EMAIL PROTECTED]: From: Lyallex [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6 and javamail The mail server does not require authentication when accessed from the office subnet. The server guys have confirmed this. Or is it that your mail server

Re: Tomcat 6 and javamail

2008-11-26 Thread Rainer Frey
On Wednesday 26 November 2008 08:37:14 Rainer Frey wrote: In the MailServer constructor I do the following properties = System.getProperties(); ... properties.put(mail.smtp.auth, false); so it looks like a different properties bundle is being used when I run this in Tomcat ... does

Re: Tomcat 6 and javamail

2008-11-25 Thread Lyallex
Hello again 2008/11/19 Don Millhofer [EMAIL PROTECTED]: Are you sure that the mail server, serving the host you are deploying to does not require authentication? I got this same error trying to go through the Google Mail Server without proper authentication. I am absolutely sure that the

Re: Tomcat 6 and javamail

2008-11-25 Thread Rainer Frey
On Tuesday 25 November 2008 15:09:54 Lyallex wrote: Hello again 2008/11/19 Don Millhofer [EMAIL PROTECTED]: Are you sure that the mail server, serving the host you are deploying to does not require authentication? I got this same error trying to go through the Google Mail Server without

Re: Tomcat 6 and javamail

2008-11-19 Thread David Smith
Start by making sure there is only one copy of the javamail jar. Remove either the one in tomcat's lib directory or your webapp's lib directory. -- David On Nov 19, 2008, at 6:04 AM, Lyallex [EMAIL PROTECTED] wrote: Hi Tomcat 6.0.16 jdk1.6.0_06 javamail 1.4.1 I have a simple component

Re: Tomcat 6 and javamail

2008-11-19 Thread Lyallex
Hi Well I've had problems with this before. As I'm sure you know, the JavaMail API 1.4.1 distribution contains dsn.jar, imap.jar, mailapi.jar, pop3.jar and smtp.jar I was very careful to make sure that I only had the above jars in EITHER the web application's lib directory (WEB-INF/lib) OR

Re: Tomcat 6 and javamail

2008-11-19 Thread Don Millhofer
Are you sure that the mail server, serving the host you are deploying to does not require authentication? I got this same error trying to go through the Google Mail Server without proper authentication. when I invoke the component in the webapp I get javax.mail.AuthenticationFailedException