Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

SendEmailMessage function does not support TLS1.2 handshake



When new cryptographic protocols (TLS 1.2) are enforced, email notifications do not work in the application. The application works with the old protocols (TLS 1.0 and TLS 1.1).

Error Messages

[WebContainer : 12] [TABTHREAD1] [PegaRULES:07.10] (pega_integrationengine_default) ERROR HOSTNAME|IPADDRESS [email protected] - Exception caught while testing connection to SMTPHOSTNAME as user PegaMailbox@DOMAIN javax.mail.MessagingException: Could not connect to SMTP host: SMTPHOSTNAME, port: 25;
  nested exception is: Unrecognized SSL message, plaintext connection?
      at com.sun.mail.smtp.SMTPTransport.openServer(
      at com.sun.mail.smtp.SMTPTransport.protocolConnect(
      at javax.mail.Service.connect(
      at javax.mail.Service.connect(
      at com.pegarules.generated.SendEmailMessage_071017_QqZSmK6END_WjYi_YBeMHA.SendEmailMessage07_10_17(
      at com.pegarules.generated.SendEmailMessage_071017_QqZSmK6END_WjYi_YBeMHA.invoke(
      at com.pega.pegarules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection(
      at com.pega.pegarules.generation.internal.library.LibraryRuntime.invokeLibraryRuntime(
      at com.pega.pegarules.session.internal.mgmt.Executable.invokeLibraryRuntime(
      at com.pega.pegarules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflection(
      at com.pegarules.generated.pega_integrationengine_default.SendEmailMessage(
      at com.pegarules.generated.activity.ra_action_smtpconnectivity_1b1b973395b389d8461782791fd40dce.step8_circum0(
      at com.pegarules.generated.activity.ra_action_smtpconnectivity_1b1b973395b389d8461782791fd40dce.perform(
      at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(
      at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(
      at com.pegarules.generated.activity.ra_action_pysmtpconnectivity_7850fbed76b5c25248849851ebc5f379.step2_circum0(
** ** **
Caused by: Unrecognized SSL message, plaintext connection?
      at com.sun.mail.util.SocketFetcher.configureSSLSocket(
      at com.sun.mail.util.SocketFetcher.createSocket(
      at com.sun.mail.util.SocketFetcher.getSocket(
      at com.sun.mail.smtp.SMTPTransport.openServer(

Steps to Reproduce

  1. Set the following generic JVM argument to enable SSL DEBUG trace and explicitly enable TLS 1.2 client protocol only in IBM WebSphere Application Server (WAS). -Dhttps.protocols="TLSv1.2" -Dmail.debug=true
  2. Configure an EmailAccount with any public secured SMTP server (for example,
  3. Invoke the SendEmailNotification activity. ClientHello for the SSLHandshake is initiated using TLS1 irrespective of the explicit client protocol JVM arguments.

Root Cause

A defect in Pegasystems’ code or rules.
EmailAccount rule form does not facilitate providing JavaMail SMTP custom properties such as mail.smtp.ssl.protocols.


Apply HFix-48630.


Published December 4, 2018 - Updated October 8, 2020

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us