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

WesWilliams-4769 65 Reputation points
2025-01-25T22:47:41.56+00:00

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

  • I, ******@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.
  • ******@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":"******@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?

 

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,179 questions
Microsoft Security | Microsoft Entra | Microsoft Entra Internet Access
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 78,006 Reputation points Volunteer Moderator
    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.