skip to Main Content

Microsoft Graph API Send Mail Response Is Empty – Php

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/" . $this->config['from_email'] . "/sendmail") ->attachBody($this->getMessageBody($message))…

VIEW QUESTION

Azure – assign license with MsGraph

I need to assign license using MsGraph-if you are here, you know it will be obsolete by the end of March. So far, I found this. $AddLicense = @( @{SkuID = $license DisabledPlans = $DisabledPlans}) Set-MgUserLicense -UserID $upn -AddLicenses $AddLicense…

VIEW QUESTION

Azure – me request is only valid with delegated authentication flow in Graph API in .Net Core API

I have a .net core api and User.Read delegated permission is given. Authentication section in startup.cs: services.AddAuthentication("Bearer") .AddMicrosoftIdentityWebApi(Configuration.GetSection("AzureAd")); Getting the graph api client: var credential = new DefaultAzureCredential(); var token = credential.GetToken( new Azure.Core.TokenRequestContext( new[] { "https://graph.microsoft.com/.default" })); var accessToken…

VIEW QUESTION
Back To Top
Search