Error sending Email

Hi!

The below error occurs when we ty to send an email:

Unable to send/receive email using ‘send mail’ & ‘Email Message Input’ plugin, Can not send mail!

Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

com.automationedge.ps.core.exception.ProcessStudioException: Can not send mail!

Could not connect to SMTP host: smtp.gmail.com, port: 465

Hi!

Following are the resolutions.

Method A
Modifying the file java.security inside the JDK install directory:

  1. Edit the file $JAVA_HOME/conf/security/java.security in a text editor.
  2. Remove the entries TLSv1, and TLSv1.1, from the following line of that file:
    jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1, RC4, DES,
  3. Restart the application

Method B
Passing a custom java.security file as java command line flag:

  1. Copy the file $JAVA_HOME/conf/security/java.security to a different location, for example /home/ojdk/oldTLS.security
  2. Remove the entries TLSv1, and TLSv1.1, from the following line of the file oldTLS.security:
    jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1, RC4, DES,
  3. Add -Djava.security.properties=/home/ojdk/oldTLS.security to the java command line in the application start script.
  4. Start the application

On Java 8, the java.security file is located in the following directory:

$JAVA_HOME/jre/lib/security