Hey Community,
My requirement is very simple - I have one Exchange Plan 1 License assigned to a user's account (which is not a global admin account). This email needs to be used for sending the email notifications to be sent based on the approval workflow. We have setup a workflow and added the "Approval" entry in Workflow Notification setup with userid as blank.
Now, this email account works well for the first level approval and sends the email - "This purchase invoice requires your approval", but then the emails stops working, and in the email outbox I see this error -
"The SMTP server rejected the authentication request, as the authentication data is incorrect. Verify that your Username and Password are correct and that the SMTP server supports the specified authentication type (OAuth 2.0). SMTP error code: 535. Status code: 535:"
Is there anything that I am missing in workflow or email account setup?
Is there any way I can setup an email account using OAuth 2.0, via which emails can be shot despite of which user is logged in?
I tried basic authentication as well in SMTP setup via App Password, but is seems to be not working as well.
Any help would be appreciated.
EDIT 01: I tried using the Microsoft 365 Account Type (first option while setting up the email accounts)
When I sent the test email from the account that has ESSENTIAL + EXCHANGE license which is setup in M365 account, it sends the test email.
When I use the account that only has essential license to send approval request, email outbox says this error - Failed to send email. Error: The mailbox is either inactive, soft-deleted, or is hosted on-premise. Status code: 404.
When I approve the email from the account that has Premium license, then i get this error - Failed to send email. Error: The user account which was used to submit this request does not have the right to send mail on behalf of the specified sending account., Cannot submit message. Status code: 403