Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, b.

Asked: December 09, 2020 - 1:53 pm UTC

Last updated: December 17, 2020 - 4:30 am UTC

Version: 12.1

Viewed 1000+ times

You Asked

We are required to use TLS for outgoing emails from our applications, we currently use a PL/SQL Javamail implementation to send out emails from the database. ( Typically alerts generated by the application )

We were told that to use TLS we need to update the JavaMail library to at least 1.6, As TLS 1.2 is supported by Java Mail 1.6 and higher.

The Java Mail jar file shipped with our databases are version 1.4 or lower.

How do I update the mail.jar or javax.mail.jar file in my database home ?

Thanks

BC

and Connor said...

I suggested APEX_MAIL on the review you posted, which I still recommend.

But otherwise, wont you just be using dropjava/loadjava to replace the exist jars?

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Thank you !!

BC, December 14, 2020 - 2:09 pm UTC

Thank you Connor,

I downloaded javax.mail.jar from
https://github.com/javaee/javamail/releases/download/JAVAMAIL-1_6_2/javax.mail.jar

Then did a dbms_java.dropjava and a dbms_java.loadjava and bingo !!

If there is any interest, I can list down all steps.

Thanks
Connor McDonald
December 17, 2020 - 4:30 am UTC

Nice work! If you're willing to add a comment with the steps, we'll fold it into the original answer (with an acknowledgement of course)

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library