Support Article
Authentication Failed exception on sending email
SA-17062
Summary
PRPC application throws, "** Caught javax.mail.AuthenticationFailedException **", error while sending an email correspondence.
User has configured the email account and test connectivity works fine. However, if the same email account is used for sending the email correspondence, using the SendEmailNotification activity, the stated exception is generated.
Error Messages
2015-11-09 12:41:31,959 [127.0.0.1:8445-3] [TABTHREAD5] [ ] [ CommMgmt:01.01.02] (pega_integrationengine_default) ERROR commsdf |dzielin3 - Unexpected exception caught while trying to send an email message.
javax.mail.AuthenticationFailedException: No authentication mechanisms supported by both server and client
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:818)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:728)
at javax.mail.Service.connect(Service.java:364)
at javax.mail.Service.connect(Service.java:245)
at com.pegarules.generated.SendEmailMessage_071017_QqZSmK6END_WjYi_YBeMHA.SendEmailMessage07_10_17(SendEmailMessage_071017_QqZSmK6END_WjYi_YBeMHA.java:309)
at com.pegarules.generated.SendEmailMessage_071017_QqZSmK6END_WjYi_YBeMHA.invoke(SendEmailMessage_071017_QqZSmK6END_WjYi_YBeMHA.java:87)
at com.pega.pegarules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection(LibraryRuntime.java:133)
at com.pega.pegarules.generation.internal.library.LibraryRuntime.invokeLibraryRuntime(LibraryRuntime.java:110)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeLibraryRuntime(Executable.java:8954)
at com.pega.pegarules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflection(LibrarySupport.java:181)
at com.pegarules.generated.pega_integrationengine_default.SendEmailMessage(pega_integrationengine_default.java:165)
at com.pegarules.generated.activity.ra_action_sendemailnotification_68866db51912c270f78c29e148aa5c65.step6_circum0(ra_action_sendemailnotification_68866db51912c270f78c29e148aa5c65.java:862)
at com.pegarules.generated.activity.ra_action_sendemailnotification_68866db51912c270f78c29e148aa5c65.perform(ra_action_sendemailnotification_68866db51912c270f78c29e148aa5c65.java:167)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3500)
Steps to Reproduce
1. Create an email account
2. Create an email correspondence and send using the SendEmailNotification activity
Root Cause
Users email server does not require password for authentication for sending the emails. In such cases, one should configure the Dynamic System Settings (DSS) in the PRPC node from where email correspondence is sent.
Resolution
Configure the following DSS on the PRPC node.
Ruleset: Pega-IntegrationEngine
Purpose: javamail/NoAuthMechanismsRetry
Value: true
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.