Re: Jakarta Mail JNDI configuration

2024-11-26 Thread Ricardo Almeida
Hi Mark, You are correct :) I could have sworn I had tried it before but I was also experimenting with different props so I might have had something else wrong with it. Regardless, it seems to be working now! Thank you so much for your help, Regards, Ricardo Almeida On Tue, 26 Nov 2024 at 11:00

Re: Jakarta Mail JNDI configuration

2024-11-26 Thread Mark Thomas
On 26/11/2024 08:42, Ricardo Almeida wrote: Hi, I'm trying to configure Jakarta Mail using JNDI but it seems there's some issue setting up the parameters Tomcat should pass on to Jakarta Mail. I configured it using: Support for ResourceParams was removed just over 20 years ago in

Re: Jakarta Mail JNDI configuration

2024-11-26 Thread Ricardo Almeida
Hi, I tried it with Tomcat 10 (10.1.31 to be exact) and for the Jakarta Mail I added to the lib folder the jakarta.mail-api-2.1.3.jar, jakarta.activation-api-2.1.3.jar and angus-mail-2.0.3.jar. It works if I create the Session object programmatically: Properties props = new Propertie

Re: Jakarta Mail JNDI configuration

2024-11-26 Thread Zdeněk Henek
Hi Ricardo, Could you provide what Tomcat version you use? Is it possible you use Tomcat 9 and you should use library using javax.mail api instead of library based on new jakarta namespace? Regards, Zdenek Henek On Tue, Nov 26, 2024 at 8:43 AM Ricardo Almeida wrote: > Hi, > > I'm trying to con

Jakarta Mail JNDI configuration

2024-11-26 Thread Ricardo Almeida
Hi, I'm trying to configure Jakarta Mail using JNDI but it seems there's some issue setting up the parameters Tomcat should pass on to Jakarta Mail. I configured it using: mail.smtp.starttls.enabletrue mail.smtp.hostsmtp.email.eu-fran