How to send encrypted mail with microsoft graph api - 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 available:

Related

MS Outlook Office Add-In migration from Rest API to Graph API: Does Graph work with on-premise Exchange servers?

I have an Outlook Add-in that uses the Outlook Rest API and we're migrating to the Graph API. It does things like downloads attachments, mime-type, and can add attachments, add recipients, and create a draft and send a message on behalf of the user. We support customers that have both Office 365 accounts and on-premise Exchange. Does the Graph API work for on-premise Exchange servers?
Aside, are there known platforms that the Graph API does not work on? I've seen errors with the authentication popups Outlook desktop as well as lack of support for the OfficeRuntime.auth.getAccessToken() in Outlook web.
Thank you.

Is Microsoft Graph API using SMTP at the back?

I am trying to use Graph API to send 20 messages within 1 minute to certain teams channel. Does Graph API use SMTP protocol to send email?
POST /me/messages/{id}/forward
POST /users/{id | userPrincipalName}/messages/{id}/forward
POST /me/mailFolders/{id}/messages/{id}/forward
POST /users/{id | userPrincipalName}/mailFolders/{id}/messages/{id}/forward
Microsoft Graph uses the user's Exchange Online or Outlook.com mailbox to send the mail. Those services do use SMTP.

Can Microsoft Graph API access emails on stored on exchange server?

I am having 404 issues trying to get an inbox of a user through microsoft graph. I think I might recall reading somehwere that Graph API can only access emails stored on 365. Is this the case?
There is currently a preview capability that allows you to access mailboxes, calendars and contacts for on premise data if your exchange infrastructure has configured in an hybrid mode. This takes a few pre-requisites on the infrastructure side and you can learn more about it here

Azure AD App-only token to consume outlook REST API

I am developing a console app in .net which will send mail using the Azure AD application. I followed all the step from generating the certificates to registered an application in Azure AD. Then provided the application permission (Send mail as any user) using Microsoft graph API and provided it “grant permission” as an admin consent.
In my console app code I uses the below outlook api to send mail as
resourseurl — https://outlook.office.com/api/v1.0/users/{my email account}/sendmail. After providing grant permission to my app I am still facing the 401:unauthorized error.
You gave permissions to Microsoft Graph API, so you need to use it.
https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_sendmail
The URL that you need to use is thus:
POST https://graph.microsoft.com/v1.0/users/{id | userPrincipalName}/sendMail
Internally the graph API does call the API you mentioned. But your token is for the graph. Not the outlook API.
You also mentioned the resource URL. The graph API resource URL is https://graph.microsoft.com.

How to get access to outlook mail in iOS via web services

I'm trying to access to outlook mail headers and attachments, I have already implemented oAuth2 and i have login and access token. I tried to access mail via imap but it is incredibly slow so I'm looking for another option. Is web calls the answer or do you have another option
thank you in advance
Take a look at the Exchange Web Services API (it is HTTP based) - https://msdn.microsoft.com/en-us/library/office/dd877045(v=exchg.140).aspx

Resources