on 2025 Apr 20 8:20 AM
Request clarification before answering.
The documentation for the destinationsap_process_automation_mail can be found at Configure an SMTP Mail Destination. If you can confirm that this issue also occurs with SAP Build Process Automation you should file an issue via SAP Support. If you need support how to use this destination with CAP please post more details how you call the destination.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @gregorw, Thanks for the response.
The below code was working fine for BasicAuth:
const { sendMail } = require('@sap-cloud-sdk/mail-client');
module.exports = srv => {
srv.on("sendmail", async (req) => {
const { to, subject, text } = req.data;
const mailConfig = {
from: 'example@sap.com',
to: to,
subject: subject,
text: text
};
try {
await sendMail({ destinationName: 'sap_process_automation_mail' }, [mailConfig]);
return 'Email sent successfully.';
} catch (error) {
console.log(error);
return 'Something went wrong!';
}
});
};
When I updated the authentication type to OAuth2Password, it started throwing error: The destination 'name: sap_process_automation_mail' does not contain host or port information as properties. Please configure in the "Additional Properties" of the destination.
Also, I'm able to trigger emails using BPA>Control Tower(OAuth2Password destination).
User | Count |
---|---|
73 | |
21 | |
8 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.