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

Oauth2 refresh_token doesn't exists – PHP

I use below code but when I login via Microsoft account I don't receive refresh_token. Someone can explain why? $login = 'https://login.microsoftonline.com/xxxxxxxxxxxxxxxxxxxxxxxxx/oauth2/v2.0/authorize?'.http_build_query([ 'client_id' => $id, 'scope' => 'https://outlook.office.com/IMAP.AccessAsUser.All', 'redirect_uri' => $redirect, 'response_type' => 'code', ]);

VIEW QUESTION
Back To Top
Search