Closed MarcBanyard closed 1 year ago
This Pull Request contains the required fixes from Merge Request #254 which has been extended to fix the issue many users were reporting on the forums when it comes to sending emails from a Shared Mailbox.
Emails need to be sent from a Licenced Microsoft 365 mailbox which is a User Mailbox as a Shared Mailbox can't have a Microsoft 365 licence assigned to it.
@MarcBanyard - Thank you for the pull and the detailed explanation. I've added to your commit, please see #265
Fixed issue for Microsoft 365 Shared Mailboxes.
This issue has been discussed in the following forum post https://forum.osticket.com/d/101462-oauth2-shared-mailboxes/34
This push fixes and resolves the issue so that the
resource_owner_email
is set correctly as the Shared Mailbox email on the Remote Mailbox tab and the User Mailbox / Global Admin is set on the Outgoing (SMTP) tab.The logic for this is
If using Shared Mailboxes, the User Mailbox account that is used to send emails is often referred to as a Service Account or a Global Admin account. This account needs to have permissions to be able to access and send emails on behalf of the Shared Mailbox(es) that you configure on your osTicket configuration.