cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Build Process Automation fails only to send emails within process execution

masahiro_hata38
Discoverer
0 Kudos
116

I have added a process to send an email within a BPA process.

On the BTP Cockpit, we have set Destination to an external SMTP mail service (using Amazon SES), and test mail sending from [Control Tower] -> [Mail Server] in BPA is sending mail without problems.

When I send an email in the process, I am getting an authentication error, but I don't know how to resolve it.
Does the handling of authentication information in Destination change in the process?

Could not send email: The server 'XXXXXXXXXXXXX.amazonaws.com' could be reached, but the login with the given credentials failed. The server has returned the following message: '535 Authentication Credentials Invalid'.

Accepted Solutions (1)

Accepted Solutions (1)

masahiro_hata38
Discoverer
0 Kudos

Self resolved.

https://help.sap.com/docs/build-process-automation/sap-build-process-automation/configuring-smtp-mai...

The above help mentioned...

*Note
"If you have been using bpmworkflowruntime_mail, bpmworkflowruntime_mail takes precedence over sap_process_automation_mail. consider merging the two destinations into one destination. For example, if both destinations have the same properties and the same configuration, you can remove the “bpmworkflowruntime_mail”.


When running test mail on Control Tower, the sap_process_automation_mail destination is used with the correct credentials, but when mail is sent in a workflow, bpmworkflowruntime_mail is used first bpmworkflowruntime_mail
If the bpmworkflowruntime_mail credentials are invalid, an authentication error will occur.
Therefore, after changing the various property settings of bpmworkflowruntime_mail to the same values as sap_process_automation_mail, the mail was successfully sent by executing mail sending on the process again.

Answers (0)