-2

When i send am email using the graph, it ends up in junk / spam of any office 365 inbox. But when i send directly from the browser it goes to inbox.

here's an example of the request:

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"
}

1 Answers1

0

I tried to Repro the same sample in my lab and I am getting mail in my Inbox.

Check this link to Stop Legitimate Emails From Getting Marked as Spam.