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
10
votes
2 answers

Microsoft Graph API - SendMail http 400 - API url from documentation not working

My application sends email using Microsoft Graph. We followed the documentation, this was working as expected for almost a year: https://graph.microsoft.com/v1.0/users/me/microsoft.graph.sendmail Since 3/8/2019, the same code sendmail API in PROD…
9
votes
5 answers

Microsoft Graph API - "code": "UnknownError"

Does anyone know what to do when you get "UnknownError" from Graph…
Erick B
  • 478
  • 5
  • 11
6
votes
1 answer

GraphServiceClient and get additional data

I use GraphServiceClient to get messages from Outlook. var messages = await _graphServiceClient.Me.MailFolders[folderId].Messages.Request() .Header("Prefer", "outlook.body-content-type=\"text\"") .Filter($"createdDateTime gt {greaterDate}…
6
votes
3 answers

Send mail via Microsoft Graph as Application (Any User)

We recently migrated from on premise exchange to Microsoft 365 and I'm wanting to turn on 2FA for all users (Enable security defaults). However this disables SMTP authentication which we have been using for sending mail from a distribution group…
Brendan Gooden
  • 1,460
  • 2
  • 21
  • 40
6
votes
1 answer

Where to find "Send As" and "Send On Behalf Of" mail settings in Microsoft Graph API?

In searching the Microsoft Graph API documentation I have been unable to find any documentation on any APIs that would allow me to get the "Send as" or "Send on behalf of" settings for an Office 365 mail user. I'd like to fetch these prior to…
c1mm3
  • 61
  • 2
6
votes
1 answer

How to retrieve embed image data from Microsoft Graph when there are no attachments?

I'm using Microsoft Graph to pull email data from a mailbox. When I get the content, I find embedded images with content like so:
Cleanshooter
  • 2,314
  • 4
  • 19
  • 29
5
votes
0 answers

HTTP 503 with ResourceUnhealthy

Sometimes Microsoft outlook or graph API return HTTP 503 ResourceUnhealthy error response for specific mailboxes. The description mentions: ResourceUnhealthy SystemMemoryProtectionUtilizationMonitor is unhealthy What does it means and what may…
5
votes
2 answers

Is the 3 MB limit for attachments in Microsoft Graph API mail messages cumulative?

I have been using Microsoft Graph .NET Client Library to send mail messages for quite a while and it's been working great but today I noticed a very strange problem. As of today here are the basic rules for attachments... If the file size is under…
5
votes
0 answers

Get and set email auto-forwarding address via microsoft graph

I am aware that this question was asked a few years ago. Is it still not possible?
Dimas Putra
  • 127
  • 9
5
votes
3 answers

Getting error 504, Gateway Timeout, while fetching messages from the MS Graph API

For the past week or so, we've been experiencing 504, Gateway Timeout errors while making fetching email messages from the MS Graph API. Prior to that for over a month of running, the same application did not experience that error, at least not in…
floatingfrisbee
  • 928
  • 1
  • 10
  • 28
5
votes
2 answers

Why do I get Gateway Timeout whenever my MS Graph API mail search finds no results?

As of this week I am suddenly getting gateway timeout from Graph when my mail search finds no results. I am using a query like this…
Igby Largeman
  • 16,495
  • 3
  • 60
  • 86
5
votes
3 answers

Microsoft Graph returns "The token contains no permissions, ..." when using app-only token

Using Postman, I am trying to retrieve the last emails received in my Outlook mailbox. To achieve this, I have declared my app in the App Portal. Then, I can do a GET request to get a token from the endpoint:…
Roatha Chann
  • 435
  • 6
  • 21
4
votes
1 answer

Microsoft Graph - Trouble in Contact Folder / Categories API(s)

There are couple of issues in Graph API for contact folders when used in personal accounts(***@outlook.com) Issue 1: Contact Folder(Categories) created via graph API is not visible in Outlook UI(even after multiple refreshes over 5 minutes). -The…
4
votes
1 answer

Microsoft Graph: How to report phishing to tenant admin

I would like to use the Microsoft Graph to report suspicious emails on behalf of a user. Precisely, the reports should end up in the User reported messages view in Microsoft Defender. I know I can create Threat Assessment Request, but that sends the…
4
votes
0 answers

In Microsoft Graph API for Mail, how to evaluate if a "Send As" or "Send on Behalf Of" address is valid before sending out the email?

In a business Microsoft 365/Exchange Online account, users' mailboxes can have "send as" or "send on behalf of" permissions of other mailboxes. The way this is utilized via Graph API is to set the From the address of a Message to the alternative…
1
2 3
32 33