Questions tagged [microsoft-graph-mail]

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.

484 questions
1
vote
0 answers

MSGraph API, filter mail by a Custom Value (internetMessageHeader)

Here is my goal : Send an email through my interface with a custom value (Imagine, orderNumber186) then use it to filter all mails send or received by this value. for example, I have a mail address with an icon, dans when I click on it I can see all…
1
vote
1 answer

How to get WellKnownFolderName.MsgFolderRoot using Microsoft graph SDk (GraphClient) in C#

In EWS WellKnownFolderName.MsgFolderRoot is present to get root folder details but in Graph SDK unable to find similar method. Our application supports EWS call but due to user migration to M365 this didn't work.
SCTest
  • 21
  • 4
1
vote
1 answer

How to use ReceivedDateTime filter using Graph client in C#

How to use email message ReceivedDateTime filter using Graph client in C#
SCTest
  • 21
  • 4
1
vote
1 answer

Avoid read access to all mailboxes for Office365 GraphAPI by default

I understand that for an app to access Office365 mailboxes I need a registered app with Application Permissions, e.g. Mail.Read which - according to its description - "allows the app to read mail in all mailboxes without signed-in user". This is…
LBA
  • 3,859
  • 2
  • 21
  • 60
1
vote
1 answer

Why am I receiving "reauthorizationRequired" lifecycle notifications when creating webhook subscriptions with a small expirationDateTime?

I am using Microsoft webhook change notifications to listen to new emails in user's mailbox. The notifications are subscribed as follows: { "changeType": "created", "notificationUrl": "{our-internal-api-endpoint}", "resource": "/me/messages", …
Marry35
  • 387
  • 4
  • 16
1
vote
1 answer

Getting ALL Email headers with Microsoft Graph SDK in a unified list?

I'm using Microsoft Graph to get information from a specific account's inbox. That account has multiple email aliases. However, even after I $select query the InternetMessageHeaders property, it does not include the alias the email was sent to. I…
1
vote
1 answer

Bad Request "ErrorExecuteSearchStaleData" in Microsoft Graph API - Search for Mails

We are using Microsoft Graph Search API to search through our O365 emails. Since the search only allows 25 results per request for mails. (see…
1
vote
1 answer

Give mailbox permissions from graph api

I am using the Graph API with app permission & with a certificate. I know how to send emails with the sender which is different from the requestor's email. I go to admin.exchange.com, select the user and add a mailbox delegation then add the user in…
Zoners
  • 123
  • 1
  • 6
  • 11
1
vote
2 answers

Filter email via headers information in M365 using Microsoft Graph API

I am trying to locate emails in mailboxes that contain certain email header information. Utilizing the Microsoft Graph Explorer I am able to extract all 'internetMessageHeaders' for…
1
vote
1 answer

How to download mail attachment through script?

I am writing a python script to fetch mail attachments through Graph API. In the Graph Explorer, I can perfectly download file attachments by manually pressing the download button after…
1
vote
1 answer

Problem modifying an attachment using ms graph

Using MS Graph SDK or MS graph explorer, we are trying to replace an attachment within a message. Updating a message attachment is not supported yet by ms graph API (or at least that's what we know). that's why we do the operation in the following…
1
vote
1 answer

Create large message draft

I have managed direct creation/send of message with smaller attachments. Then, for larger attachments I have managed the way, when the the draft message is created, and the attachments are sent separately to this draft as simple…
Richard Toth
  • 781
  • 6
  • 7
1
vote
0 answers

Microsoft Graph API message edit and move requests returning BrokenPipeError for specific tenant

We encountered a large amount of "Connection aborted. BrokenPipeError" responses from a specific tenant. We are using the (email) message edit and move APIs. These errors seem to be happening more frequently in certain hours. The error itself does…
Omri-odix
  • 41
  • 3
1
vote
2 answers

Graph API not returning file extension for MSG files

I am using the the following Graph API URL to retrieve the filename(s) attached to an email: https://graph.microsoft.com/v1.0/me/messages/*/attachments however, it is no longer returning the attached filename(s) for '.msg' files. The file extension…
1
vote
1 answer

How to read attachment of the attached email using Microsoft Graph API

Do we know how to fetch attachments of the attached email using Microsoft Graph API ? I have one requirement where I need to read such emails. I have followed the below link by Microsoft but I can only ready body and not it's…