Recipient does not Receive Emails Successfully Sent via Graph API sendMail. Why not?

We s 20 Reputation points
2025-01-25T22:47:41.56+00:00

My windows daemon successfully sends emails via the graph API (code below). However, xxx.williams@outlook.com does not receive them. Why not?

  • I, xxx.williams@outlook.com, have an active MS 365 Apps for Business license and am the admin.
  • sendMail has application permissions along with all other mail and mailbox permissions.
  • xxx.williams@outlook.com junk mail folder is empty

Screenshot 2025-01-25 165130

returns:

============ SEND MAIL =================

OK

{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users/$entity","businessPhones":["7815073118"],"displayName":"XXXWilliams","givenName":"XXX","jobTitle":null,"mail":null,"mobilePhone":null,"officeLocation":null,"preferredLanguage":"en","surname":"Williams","userPrincipalName":"XXxxWilliams@Xxx.onmicrosoft.com","id":"xxxxxxxx-58c0-42a6-9203-06eec6882b5c"}

Screenshot 2025-01-25 162626

Screenshot 2025-01-25 173012

User's image

What is broken?

 

Microsoft Exchange Online
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,873 questions
Microsoft Entra Internet Access
Microsoft Entra Internet Access
A Microsoft Entra service that provides an identity-centric Secure Web Gateway that protects access to internet, software as a service (SaaS), and Microsoft 365 apps and resources.
32 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 69,976 Reputation points
    2025-01-26T02:00:43.57+00:00

    Your graphapi call is getting the user profile, not sending an email message. Also no content is sent with the get method, only headers.

    from the response display it seems to be working correctly. To send mail see

    https://learn.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0&tabs=http


0 additional answers

Sort by: Most helpful

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.