Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello!
I have seen a lot of people over the internet struggling with the tSendMail component Talend offers and in most cases it's always the same error/java exception.
In this post, I'd like to share the way to fix this general Talend issue with all of you.
Issue/problem
It is not possible to send mails with the tSendMail component provided by Talend. In most cases, the following exception pops up
Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
The reason is simple
Solution
Before we start playing with the java.security file, here is the real way to solve this issue.
Four steps will be needed.
Here are a few screenshots to help:
Hello,
It is a very good job and thanks for sharing it with us on community.
Best regards
Sabrina
Hi @Xiaodi Shi
Do we need to publish all the jobs again, after making this change? We have 100's of jobs running.
Is there a way to include this argument '-Dmail.smtp.ssl.protocols=TLSv1.2' on the job server(Linux) and all the running jobs in Prod can take it up?
Regards,
Raghu
You can include the argument in your .sh files.
Could you please help with understanding what are the .sh files and where can I locate them on the jobserver?
Well, you said that you were hosting the jobs on a Linux machine, right? Each job should have its own shell scripts (.sh) file, in which you can add various parameters.
Since I assume that you did not update your mail.jar component, you have two possibilities for your mails to work.
Solution:
Method A
Modifying the file java.security inside the JDK install directory:
On Java 8, the java.security file is located in the following directory:
$JAVA_HOME/jre/lib/security
Method B
Keep in mind that Method A is not the right way to do this.
Also, you could try just adding this parameter to your .sh file: -Dmail.smtp.ssl.protocols=TLSv1.2
If none of the solutions above work, please create a new post with a detailed description of your jobs 🙂