question

TiwariPooja-4960 avatar image
0 Votes"
TiwariPooja-4960 asked CarlZhao-MSFT commented

Microsoft Office 365 graph API to configure in SAP Cloud integration to send emails from account instead of SMTP/IMAP service

Microsoft Office 365 graph API to configure in SAP Cloud integration to send emails from account instead of SMTP/IMAP service.

Is it achievable? to use Graph API instead of IMAP service to send emails from MS365 email account.

microsoft-graph-applications
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,would you please provide us with an update on the status of your issue?

0 Votes 0 ·

1 Answer

CarlZhao-MSFT avatar image
0 Votes"
CarlZhao-MSFT answered

No, ms office 365 graph API does not support configuration in third-party SAP Cloud integration.


You can directly call the /sendMail api endpoint to send emails:

POST https://graph.microsoft.com/v1.0/me/sendMail
Content-type: application/json

{
  "message": {
    "subject": "Meet for lunch?",
    "body": {
      "contentType": "Text",
      "content": "The new cafeteria is open."
    },
    "toRecipients": [
      {
        "emailAddress": {
          "address": "fannyd@contoso.onmicrosoft.com"
        }
      }
    ],
    "ccRecipients": [
      {
        "emailAddress": {
          "address": "danas@contoso.onmicrosoft.com"
        }
      }
    ]
  },
  "saveToSentItems": "false"
}
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.