Microsoft Graph Mail refers to the Outlook Mail APIs in Microsoft Graph. This tag should always be used in conjunction with the [microsoft-graph] tag.
Questions tagged [microsoft-graph-mail]
484 questions
2
votes
1 answer
Best practice for syncing mailbox state, Deltas vs. Subscriptions
I am building a CRM which handles email exchange in the app by processing emails sent to the Office365 accounts of the users using Microsoft Graph API. What is the best practice to keep track of emails in the actual mailbox? Should I use delta's or…

pbgneff
- 111
- 1
- 4
2
votes
2 answers
Cannot pass "In-Reply-To" parameter to Microsoft Graph sendMail
I allow users to send emails with their Outlook account by using Microsoft Graph API, but it seems to be creating multiple threads on the other side.
When using Mailgun API to send the user emails, I am able to pass the In-Reply-To message header…

Alexandre Paroissien
- 627
- 1
- 5
- 17
2
votes
1 answer
Error access denied in microsoft graph api to read user messages
When I call https://graph.microsoft.com/v1.0/me/messages in Postman, it returns this error:
{
"error": {
"code": "ErrorAccessDenied",
"message": "Access is denied. Check credentials and try again.",
"innerError": {
…

Shubham Gupta
- 43
- 1
- 4
2
votes
3 answers
download attachments from mail using microsoft graph rest api
I've been successfully getting the list of mails in inbox using microsoft graph rest api but i'm having tough time to understand documentation on how to download attachments from mail.
For example : This question stackoverflow answer speaks about…

Irfan Harun
- 979
- 2
- 16
- 37
2
votes
4 answers
Error Access Denied on mailboxSettings for users
I'm trying to hit https://graph.microsoft.com/v1.0/users/{userId}/mailboxSettings endpoint with an auth token and in return receiving a 403 Error Access Denied response.
I have granted both application level and delegated permissions for…

ctownley
- 21
- 2
1
vote
0 answers
Microsoft Graph API - @odata.nextLink is not returned in messages/delta response due to invalid JSON response and ErrorCannotOpenFileAttachment error
I'm making a request to the Microsoft Graph API to the messages/delta endpoint, and seeing invalid JSON being returned as a result of an ErrorCannotOpenFileAttachment error, which is also causing the @odata.nextLink property to be missing from the…

Scott Hill
- 47
- 7
1
vote
2 answers
Python send email using Graph API and Office365-REST-Python-Client
I am trying to send an email using Graph API and Python. I tried doing it with graph explorer and it worked. I found this example: https://github.com/vgrem/Office365-REST-Python-Client#working-with-outlook-api
from office365.graph_client import…

Vitamin C
- 135
- 11
1
vote
1 answer
Microsoft.Graph.Models.ODataErrors.ODataError when trying to get message by Id. Microsoft Graph GraphServiceClient
When I try to download an email from a shared mailbox using the GraphServiceClient I keep getting
Exception of type 'Microsoft.Graph.Models.ODataErrors.ODataError' was thrown.
The OData request is not supported.
I've googled the issue and haven't…

NolaDev18
- 13
- 3
1
vote
1 answer
Python oauth2 access to outlook emailbox
According to microsoft document from MSAL library, I can successfully get access token, the code is as follows:
import msal
import imaplib
import requests
def acquire_token():
"""
Acquire token via MSAL
"""
#authority_url =…

Thomas Sun
- 11
- 1
1
vote
0 answers
Downloading Attachment greater than 20 MB Failing in Microsoft Graph 5.8.0
With v5+ versions that option isn't available. Am getting the below mentioned error while downloading attachment from mailbox using the mail id.
Exception of type 'Microsoft.Graph.Models.ODataErrors.ODataError' was thrown
with Response status as…

leox
- 1,315
- 17
- 26
1
vote
2 answers
Microsoft Graph API Send Mail Response Is Empty
I am trying to send an email using modern smtp with Office365 Graph API. Emails are sending fine, with attachments however, I cannot seem to fullfill the response I'm expecting from the endpoint.
$this->graphSdk->createRequest("POST", "/users/" .…

Jaquarh
- 6,493
- 7
- 34
- 86
1
vote
2 answers
In Which Case Is createdDateTime After lastModifiedDateTime in Microsoft Graph API For Emails?
The Background:
We have a shared mailbox that is being used on both Outlook web and Outlook native apps. We have created change notifications set up for emails on it.
I am using Microsoft Graph API v1.0 for reading its emails using this…

PIYUSH CHUGH
- 304
- 4
- 15
1
vote
1 answer
How to get attachments from an email using the Microsoft Graph API?
I use the Spring Boot framework to develop a program that allows me to obtain the attached files of an email, but there is a code according to the Microsoft page that says that by means of the following code you can obtain the properties of the…

Juan Moreno
- 13
- 2
1
vote
1 answer
Permission issues while trying to get Outlook Calendar events using Microsoft Graph API - Access is denied. Check credentials and try again
Getting the below error while trying to access the user's Calendar events data through Microsoft Graph API:
{'error': {'code': 'ErrorAccessDenied', 'message': 'Access is denied. Check credentials and try again.'}}
Registered a new Azure AD…

Rathish Kumar B
- 1,271
- 10
- 21
1
vote
1 answer
Microsoft graph api is sending multiple duplicate "created" notifications on a message resource
The exact POST I made to create exactly 1 subscription on 1 resource:
POST https://graph.microsoft.com/v1.0/subscriptions
Content-Type: application/json
{
"changeType": "created",
"notificationUrl": "https://myurl.com/endpoint",
"resource":…

xyzit
- 89
- 1
- 8