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
3
votes
2 answers
How to pass $value in request to get mime content of mail using graph sdk not api
I am using Graph SDK in C# to read mail messages and I am able to do that. I want Mime Content of my mail message. How do we pass $value in my request using SDK.
Sample code:
mails = await graphserviceclient
.Me
.Messages
.Request()
…
3
votes
0 answers
Can we set "Do Not Forward" permission to an email sent programmatically?
I want to set "Do Not Forward" permission which is available on the Outlook Client, to the mails i sent programmatically. How can it be achieved?
I have a C# application which will sent a mail which contains sensitive information so would like to…

Jemin Jose
- 423
- 1
- 4
- 5
3
votes
0 answers
How to set primary SMTP address with Graph API?
I've some issues with the Graph API. I create a user (userPrincipalName = 001XX1234@domain.com), assign a licence, but i'm not able to add an alias or set the primary SMTP address.
Tried to use otherMails, but i can't get it to work ... (no error…

DerKiLLa
- 135
- 12
3
votes
1 answer
Getting wrong contentType from EML attachment
I am using Microsoft Graph to fetch mail and I recently noticed when an email has a .eml attachment, there are two cases:
If the sender attach that email through drugging emails to the composer, the attachment will be an item attachment type. <-- I…

CipherText
- 105
- 1
- 10
3
votes
1 answer
Exchange 2016 on-premise mailbox access using Graph API (Hybrid Setup)
I have a mailbox in on prem exchange server (which is in hybrid mode) abc@onprem.com and i am trying to access this via graph api (/messages). This works perfectly if i do this in graph explorer, but fails when i do via implementation.
Required…

Karthik Hebbar
- 113
- 8
2
votes
2 answers
How to add attachment to Microsoft Graph based email
This is my code to send an email in Graph.
Without the attachment part it works great.
With, I get an error: Badrequest.
I have to clue how to fix it. I can't find any examples on internet.
thanks
Frank
var emailMessage = new
{
message =…

Knarf
- 51
- 4
2
votes
1 answer
Microsoft Graph API's "Access is denied. Check credentials and try again"
Hello everyone i'm new on Microsoft Azure platform.
We are using mircosoft outlook graph api for send mails.
The credentials and things are working fine. But when we are using api with /sendMail method it returns.
Access is denied. Check…

Tushar Patil
- 53
- 1
- 1
- 5
2
votes
0 answers
How to send a reply on behalf of a shared mailbox from within the shared mailbox context using Microsoft Graph API?
I have an application that uses Microsoft Graph API to receive and send emails from multiple shared mailboxes.
The application authenticates itself using OAuth to an App in our Azure Active Directory that has Application type access to the…

Artemis
- 21
- 1
2
votes
0 answers
Send attachments with emails via microsoft graph api using URLs of google cloud storage bucket
I'm trying to integrate outlook with an emailing solution that we are creating. I initially integrated Gmail for sending the attachments, I stored the uploaded file in a cloud storage bucket and sent the attachment as an URL in gmail.
The Gmail API…

Tirthoraj Sengupta
- 31
- 2
2
votes
2 answers
Microsoft.Graph Forward as attachment
I'm using updating out Exchange Mail Client written in .NET 4 Framework using Exchange Web Services (EWS) to .NET Core 6 using Microsoft.Graph. I've managed to port most of the functions but I'm having trouble working out how to Forward a Message as…

Rhett Leech
- 145
- 1
- 2
- 14
2
votes
0 answers
Delta filter stops working for the email messages
We use 'delta' ms graph api to track the changes in the message.
Accordingly microsoft docs https://learn.microsoft.com/en-us/graph/delta-query-messages we can use delta parameter in such from '$filter=receivedDateTime+ge+{value}'
After the some…

lazyden
- 456
- 5
- 10
2
votes
0 answers
How do I get a list of available shared mailboxes with Graph API?
I can get the messages in a shared mailbox with the
https://graph.microsoft.com/v1.0/users/sharedinbox@address/messages
endpoint, but is there a way to find all shared inboxes the current user has access to? I could iterate over all users returned…

chiliNUT
- 18,989
- 14
- 66
- 106
2
votes
0 answers
Why are emails from Sent Items being saved in RecoverableItemsPurges folder when sending emails using Graph API?
We're using the following endpoint in Microsoft Graph APIs to send emails from users' mailboxes.
POST /users/{id | userPrincipalName}/sendMail
The POST request has a parameter called saveToSentItems that controls whether sent emails are saved in…

Marry35
- 387
- 4
- 16
2
votes
0 answers
How to send encrypted mail with microsoft graph api
I want to send an encrypted mail with microsoft graph api. Sending normal mails works as outlined in https://learn.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0&tabs=http
however this option of outlook web does not seem to be…

jannikb
- 476
- 1
- 6
- 16
2
votes
1 answer
Microsoft Graph - Adding recurring event with exceptions
How can I add a recurring event with exceptions using the Microsoft Graph API?
Is this possible in Microsoft Graph at all?
Edit:
For instance, I want to create an event that will take place every Monday, starting 07/05/2021, but that will not occur…

Siddhartha Argollo
- 21
- 2