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.
In 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.