Hi,
I just signed up for a Microsoft business account I am using the Microsoft Graph API to create and send an emails (to myself as a first step) using the sendEmail API (https://zcusa.951200.xyz/en-us/graph/api/user-sendmail?view=graph-rest-1.0&tabs=http). But the odd part is that, even when I send an email to my own Microsoft provided email address the API call succeeds, I get:
XYZ@XYZ.onmicrosoft.com
Your message wasn't delivered because the recipient's email provider rejected it.
Generating server: XYZ.namprd14.prod.outlook.com
XYZ@ XYZ.onmicrosoft.com
Remote server returned '550 5.7.501 Service unavailable. Spam abuse detected from IP range. For more information please go to http://go.microsoft.com/fwlink/?LinkId=526653. S(2017052602) [DS0PR14MB6484.namprd14.prod.outlook.com 2024-09-17T23:31:42.467Z 08DCD5D6641AB171]'
Original message headers:
Received: from XYZ.namprd14.prod.outlook.com
([fe80::402e:b412:343c:17c2]) by SA1PR14MB5485.namprd14.prod.outlook.com
([fe80::402e:b412:343c:17c2%7]) with mapi id 15.20.7962.022; Tue, 17 Sep 2024
23:31:42 +0000
MIME-Version: 1.0
Content-Type: text/plain
Date: Tue, 17 Sep 2024 23:31:42 +0000
Message-ID:
SA1PR14MB5485F59A3CFCCE32C90D8FD4F4612@SA1PR14MB5485.namprd14.prod.outlook.com
Subject: Test Subject
My email had title 'Test Subject' and body 'Hello! I am just doing a quick test to see if emailing works.'. Does anyone know the root cause of this? Is there a sandbox environment that an API is in until a request is made? What can I do to fix (after all, I am only emailing myself)?
Cheers!