| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 1001 |
| Technical Name |
microsoft_graph_mail |
| License | OPL-1 |
| Website | https://nexevolve.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 1001 |
| Technical Name |
microsoft_graph_mail |
| License | OPL-1 |
| Website | https://nexevolve.com |
Microsoft Graph Mail
Send and receive Microsoft 365 email via the Graph API — no SMTP or IMAP required
Replace legacy SMTP AUTH for outgoing mail and IMAP polling for incoming mail with direct HTTP calls to the Microsoft Graph API. Ideal for organisations where SMTP AUTH and Basic Authentication have been retired, or where Modern Authentication via OAuth 2.0 is required by policy.
Key Features
OAuth 2.0 Delegated Authentication
Full OAuth 2.0 authorization code flow with token auto-refresh. A 10-second lookahead prevents mid-send token expiry. No passwords are stored.
Incoming Mail — No IMAP Needed
Fetch unread messages directly from your Microsoft 365 mailbox via the Graph API. No IMAP or POP3 access needs to be enabled on the tenant. Messages are marked as read in Outlook after processing.
Large Attachment Support (up to 150 MB)
Outgoing attachments under 3 MB are sent inline. Larger files are automatically routed through Graph upload sessions using 4 MB chunks — no configuration needed.
Configurable Fetch Folder
Poll any named folder or folder ID: inbox, junkemail,
sentitems, or a custom Graph folder ID. Each incoming mail server
can target a different folder.
Automatic Sent Items
Every outbound email appears in the sender’s Outlook Sent Items folder, maintaining a full audit trail without extra configuration.
App-Only Credential Fallback
Optionally configure application permissions (client_credentials
grant) as a system-account fallback for outgoing mail when a tenant ID is
stored in System Parameters.
Retry on 401
If the server returns a 401 Unauthorized response mid-flight, the module transparently refreshes the access token and retries the request once.
HTTP Debug Logging
A debug toggle logs the full Graph API request payload and HTTP response to the Odoo server log — equivalent to SMTP debug mode. Always disable in production.
Interested in this module?
This module is a product of Nexevolve Pty Ltd. For licensing, setup assistance, or any enquiries, please reach out to our team.
sales@nexevolve.comKnown Limitations
Embedded images referenced by cid: in HTML are sent as regular
attachments rather than inline content. This is a Graph API constraint.
App-only token requests always target a tenant-specific Azure endpoint
(not /common/), requiring microsoft_graph_tenant_id to be set.
Up to 50 unread messages are fetched per cron run per server. High-volume mailboxes will drain across successive cron runs (every 5 minutes).
Developed by Nexevolve — nexevolve.com
Licensed under the Odoo Proprietary License v1.0 (OPL-1).
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module