MSGraph Send API does not report failed to deliver on messages

totally_gizmo 96 Reputation points
2022-05-20T12:45:35.037+00:00

A user can send an e-mail with this snippet.

result , err := client.UsersById(user).MailFoldersById(mailFolderId).Messages().Post(requestBody)

The result will show that a message object was created. If a user sends the same message 3 times, the output is the same. This is problematic. Two of the 3 remaining messages will be caught by the spam filter and the API generates neither error nor any additional information stating that there was potentially a problem. Is there a way to identify a message as not being delivered within the GraphAPI ecosystem?

  • Using microsoft-sdk-go v.22
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,723 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RajeshKumarMSFT 1,971 Reputation points Microsoft Vendor
    2022-05-20T15:08:53.25+00:00

    Hi @DannyAdams-2744,

    Hope you are doing well,

    Generally these issues occurs while using trail tenant to perform this send email activity using Graph API.

    This error occurs when sending email from known, low reputation IP addresses that are typically used by new customers on Trail tenants.
    To fix this issue your Tenant needs to be added to a sending exclusion for 60 days to allow them to use blocked IPs whilst they still have a new/trial license.

    Please raise a case with MS Support team from your tenant where you are facing issue respective team will provide exclusion for your tenant.

    Hope this helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".

    0 comments No comments