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 TLSv1.2 handshake



Emails are sent through SMTP with STARTTLS. The SMTP server only supports TLSv1.2. Error occurs when running Test connectivity from the Pega EmailAccount rule.

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

Execute TestConnectivity on the EmailAccount rule.

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-47897.


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