on 12-11-2023 5:43 PM
Hi,
I'm trying to send email from a Build Process Automation workflow.
I created sap_process_automation_mail destination as below, but it doesn't work.
Type MAIL
Proxy Type Internet
Authentication OAuth2Password
User <user_email>
Password <user_pwd>
Client ID <Application ID (client)>
Client Secret <client secret value>
Token Service URL https://login.microsoftonline.com/<Tenant_ID>/oauth2/v2.0/token
- - - ADDITIONAL PROPERTIES - - -
mail.bpm.send.disabled false
mail.smtp.auth true
mail.smtp.auth.mechanisms XOAUTH2
mail.smtp.from <user_email>
mail.smtp.host smtp.office365.com
mail.smtp.port 587
mail.smtp.ssl.checkserveridentity true
mail.smtp.ssl.enable false
mail.smtp.ssl.trust *
mail.smtp.starttls.enable true
mail.smtp.starttls.required true
mail.transport.protocol smtp
scope https://graph.microsoft.com/SMTP.Send
How can i solve?
Thanks in advance,
Giampaolo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vladimir, thanks for answer.
Unfortunately Basic Authentication is now deprecated in Office365 and if I try to send emails with the configuration you suggested (and which I use to send emails with gmail) I get this error message.
I'm following this help doc.
Best Regards,
Giampaolo
There's a SAP Note available now:
3451530 - Get error "Sending an email is not possible due to authentication issues" when testing SMTP server in BPA
https://me.sap.com/notes/0003451530
To me it looks like Microsoft applied a few changes and SAP did not update the documentation yet (Configure an SMTP Mail Destination | SAP Help Portal).
Basic Authentication didn't work for me with Microsoft.
I do suggest to use Amazon Simple Email Service (Amazon SES https://docs.aws.amazon.com/ses/ ) with Basic Authentication.
User | Count |
---|---|
81 | |
11 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.