This content has been marked as final. Show 2 replies
There's a lot of confusion in your message...
First, let me say that I'm not an expert in the use of Java in the Oracle database,
so if your problem is related to that you may need to get help in a different forum.
I would strongly suggest that you get everything working with a simple test program
that runs outside of the database, then move the working JavaMail code and
configuration into the database program.
As for your problem...
Enabling TLS shouldn't change whether or not it correctly finds the "smtp" provider.
Since you can send mail within your company, but not send mail outside your
company, most likely your mail server is refusing to send mail outside your company
without knowing who you are, which means you need to be sure to authenticate to the
server before sending. This JavaMail FAQ entry tells you how to do that:
If that's still not working, turn on Session debugging (see the FAQ) and post the