Yes, I see that Tomcat did not seem to "like" my context.xml file, so I changed it to be this:
This allowed me to get past that first error I was having, but now I find I am hitting the following authentication error:
DEBUG: setDebug: JavaMail version 1.4.1ea-SNAPSHOT DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc] DEBUG SMTP: useEhlo true, useAuth true javax.mail.AuthenticationFailedException at javax.mail.Service.connect(Service.java:319) at javax.mail.Service.connect(Service.java:169) at javax.mail.Service.connect(Service.java:118) at javax.mail.Transport.send0(Transport.java:188) at javax.mail.Transport.send(Transport.java:118)
So, getting closer! Can anyone see a problem with how I am defining my username and password for authentication? I use mail.stmp.user="email@example.com" , maybe I should just say user="firstname.lastname@example.org" or mail.stmp.user="name.alerts" ? I am sure it is some simple syntax mistake like this.
Joined: Mar 22, 2005
maybe I should just say user="email@example.com" or mail.stmp.user="name.alerts"?[/QB]
Or use mail.smtp.user and mail.smtp.password instead
Joined: May 17, 2001
Doh! Thanks so much! Very helpful to have a second set of eye's to see these stupid typo's. Once I changed my stmp's to smtp's, I was able to pass my authentication problem. However, now I am having troupble with JavaMail not likeing the address I am sending mail TO.
It will send mail fine TO any address on the same host "myCompany.com" that I am sending mail FROM, but if I try to send email to a differant host "name@anotherDomain.com", I get an invalid destination address exception.
So, once again, getting further, but still hitting problems. Thanks for sticking with me on this problem.
Here is my current config :
Joined: May 17, 2001
Sorry, My mistake on last post, I just realized that I had set mail.smtp.auth="false" as a test, once I set it back to "true", now I am getting the AuthenticationFailedException again. Argh.