Hello,
I am using the Grav premium plugin “Email Office365” with Microsoft Graph API.
According to the FAQ, the plugin supports sending emails from any address that the authenticated Office365 account has “Send As” permission for, including shared mailboxes.
However, in my setup, emails are always sent with the authenticated user as the sender, even when a shared mailbox is specified as the From address.
Context:
- Sending method: Microsoft Graph API (OAuth2)
- App registration with delegated permissions:
- Mail.Send
- Mail.Send.Shared
- User.Read
- offline_access
(admin consent granted)
- Authenticated user has “Send As” permission on the shared mailbox
- Desired sender (From): shared mailbox (ateliers@duvertsurlatable.fr)
Observed behavior:
- Outgoing emails always show the authenticated user as the sender
- The shared mailbox never appears as the From address
This suggests the plugin may be using the /me/sendMail Graph endpoint instead of /users/{shared-mailbox}/sendMail.
Could you please clarify:
- Does the Email Office365 plugin currently support sending from shared mailboxes when using Microsoft Graph API?
- If yes, is there a configuration option to define the shared mailbox used as sender?
- Which Graph endpoint is used internally for sending mail (/me/sendMail or /users/{mailbox}/sendMail)?
Thank you for your clarification.
Best regards,
Hello,
I am using the Grav premium plugin “Email Office365” with Microsoft Graph API.
According to the FAQ, the plugin supports sending emails from any address that the authenticated Office365 account has “Send As” permission for, including shared mailboxes.
However, in my setup, emails are always sent with the authenticated user as the sender, even when a shared mailbox is specified as the From address.
Context:
(admin consent granted)
Observed behavior:
This suggests the plugin may be using the /me/sendMail Graph endpoint instead of /users/{shared-mailbox}/sendMail.
Could you please clarify:
Thank you for your clarification.
Best regards,