Re: Configuring E-Mail Session via JNDI

2015-08-07 Thread Tim Gustafson
> I use NetBeans with Maven, and in that context I would declare the > mail dependency to be provided. I don't know how to do > that in a native NetBeans project, but what you'd need to do is to > tell NetBeans that javax.mail is required to compile but must not be > included in the output WAR. I

Re: Configuring E-Mail Session via JNDI

2015-08-06 Thread Mark H. Wood
On Wed, Aug 05, 2015 at 09:12:14PM -0700, Tim Gustafson wrote: > I'm trying to configure an e-mail session in my Tomcat configuration like > this: > >auth="Container" > type="javax.mail.Session" > mail.transport.protocol="smtp" > mail.smtp.host="192.168.0.2" > mail

Re: Configuring E-Mail Session via JNDI

2015-08-06 Thread Felix Schumacher
Am 6. August 2015 06:12:14 MESZ, schrieb Tim Gustafson : >I'm trying to configure an e-mail session in my Tomcat configuration >like this: > > auth="Container" > type="javax.mail.Session" > mail.transport.protocol="smtp" > mail.smtp.host="192.168.0.2" > mail.debug="true"

Configuring E-Mail Session via JNDI

2015-08-05 Thread Tim Gustafson
I'm trying to configure an e-mail session in my Tomcat configuration like this: >From my web application, I'm instantiating a Session object like this: Context initialContext = new InitialContext(); session = (Session) initialContext.lookup("java:comp/env/mail/session"); When I go to send e-ma