Authentication exception using OOTB SendEmailNotification with Pega 7.2.1
We are trying to call OOTB SendEmailNotification activity to send an email.
We cannot use SendSimpleEmail because we need to set some addresses in CC.
We are using the same SendEmailNotification in a similar way in another application developed in Pega 8.4 whitout any issue, but in Pega 7.2.1 we receive the following error:
| [MSG][Unexpected exception caught while trying to send an email message with sender ID of and addressee of :][STACK][com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated |
The error is generated by SendEmailMessage OOTB function.
The email account was correctly configured and the "Test connectivity" button returns a success.
Is there any workaround to this?
We need to send the emails both with TO and CC addresses. Some email addresses are related to Pega operators, while others aren't.
***Edited by Moderator Marije to add Capability tags***
@SilviaZ3 Can you try to first fetch the details from Email Account using obj-open on the account and set the values in parameters and pass that to the SendEmailNotification activity. I am afraid that some of the values are not getting passed correctly, hence that error (most likely the password).
Refer the screenshots for more info. Hope that helps.