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

AuthenticationFailedException occurs while sending email

SA-9938

Summary



While sending emails from CPM portal, developer gets an exception.

Error Messages



Caught javax.mail.AuthenticationFailedException 

Steps to Reproduce



1. Use SendEmailMessage activity which is OOTB activity to send email notifications.
2. Pass all the required parameters to this sendEmailMessage when you call it from another activity.
3. Configure such that it runs when user selects the send email local action option.

Root Cause



This AuthenticationFailedException is a generic exception.
I
n this case, developer is sending wrong values to parameters pyFromUserID, pyFrom which are required to authenticate on Email server.

Resolution



This issue is resolved through the following Local-change:

Instead of using SendEmailMessage activity directly and send parameters to it manually, you must call SendSimpleEmail activity through which you can pass parameters automatically to SendEmailMessage.

 

Published June 12, 2015 - Updated October 8, 2020

Was this useful?

0% 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