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

Tiwari, Pooja 1 Reputation point
2021-07-29T12:14:44.12+00:00

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 Security Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 46,371 Reputation points
    2021-07-30T06:36:57.397+00:00

    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": "******@contoso.onmicrosoft.com"  
               }  
             }  
           ],  
           "ccRecipients": [  
             {  
               "emailAddress": {  
                 "address": "******@contoso.onmicrosoft.com"  
               }  
             }  
           ]  
         },  
         "saveToSentItems": "false"  
       }  
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.