Hello,
We are trying to send emails by Office 365 (OAuth 2.0) using modern authentication.
The idea is to use one mail sync account (delegated access) in O365 and use the “send as” function for every user email account. This is configured to every user mail account in the MS admin center. In acumatica the system mail asccount is configured as: mailsync@example.onmicrosoft.com\user@example.onmicrosoft.com
We followed the installation guide: https://help-2022r2.acumatica.com/(W(1))/Help?ScreenId=ShowWiki&pageid=7ea4c814-8b24-4a77-9ae0-9596012fbfab
After creating an External Application and configured the SM204002 according to installation guide
- We can log in to O365 (MFA removed) well - checked
- We can get new inbound emails (SM204002 Sidepanel) well - checked
- If we try to send an email - error
The email cannot be sent because the account you signed in with does not have permission for using the email address specified in the system email account on the System Email Accounts (SM204002) form.
If we try to send (send as) by outlook webmail it works well.
The Microsoft Graph API rights are correct configured:
IMAP.AccessAsUser.All, offline_access and SMTP.Send deligated
Maybe some one has an idea?