views:

549

answers:

1

Hello,

I try to send an email using a jee app. The exact same code is working on a console application. When I use this code on a jee project and I test it using glassfish v3, i get a Unable to find valid certification path to requested target. I don't want to import any certificate. I just want to send my mail even if there is a cert problem.

Thanks for your help!

A: 

You might need to add the certificate to your server's list of trusted certificates. This Sun blog post describes how to do this.

Michael Angstadt