Have you tried localhost just to see if you can send locally?
On Fri, Apr 4, 2008 at 2:51 AM, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > On Fri, Apr 4, 2008 at 5:58 AM, Christopher Lyth <[EMAIL PROTECTED]> wrote: > > > *I cant seem to get any emails to send. I have changed the "from > address" > > in > > the application xml to be my gmail address. I'm not sure what to try > next, > > I > > have tried multiple gmail accounts and my work SMTP server and I get the > > same stack trace. > > * > > <Context path="/continuum" > > docBase="/usr/share/apache-tomcat-6.0.16/webapps/continuum"> > > > > <Resource name="jdbc/users" > > auth="Container" > > type="javax.sql.DataSource" > > username="sa" > > password="" > > driverClassName="org.apache.derby.jdbc.EmbeddedDriver" > > url="jdbc:derby:database/users;create=true" /> > > > > <Resource name="jdbc/continuum" > > auth="Container" > > type="javax.sql.DataSource" > > username="sa" > > password="" > > driverClassName="org.apache.derby.jdbc.EmbeddedDriver" > > url="jdbc:derby:database/continuum;create=true" /> > > > > <Resource name="mail/Session" > > type="javax.mail.Session" > > mail.smtp.host="smtp.gmail.com" > > mail.smtp.port="465" > > mail.debug="true" > > mail.smtp.auth="true" > > mail.smtp.user="[EMAIL PROTECTED]" > > password="my_password" > > mail.smtp.starttls.enable="true" > > > mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory" > > /> > > </Context> > > > > *And a snippet from the stack trace...* > > > > Caused by: javax.mail.AuthenticationFailedException > > at javax.mail.Service.connect(Service.java:306) > > at > > > > > org.codehaus.plexus.mailsender.javamail.AbstractJavamailMailSender.send(AbstractJavamailMailSender.java:212) > > ... 72 more > > > > It's a basic answer but with this snippet, it seems you were connected to > the smtp host but the authentication failed. login/password was correct? > I think the password property name is 'mail.smtp.password' instead of > 'password' in the mail/session resource definition > > Emmanuel > -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.linkedin.com/in/mickknutson http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com ---
