Not able to send a mail using Graph Explorer

Copper Contributor

I have tried to send a mail through Graph API but receiving an error that 

Remote Server returned '550 5.7.708 Service unavailable. Access denied, traffic not accepted from this IP. For more information please go to AS(7230) [PNYPR01MB5114.INDPRD01.PROD.OUTLOOK.COM]'


Below is the code:


public sendMail(){

  const mail = {
    subject: "This is a sample",
    toRecipients: [{
        emailAddress: {
            address: ""
    body: {
        content: "This is a sample",
        contentType: "html"
this.props.context.msGraphClientFactory.getClient().then((client: MSGraphClient:( void => {
    .post({message: mail}, (err, res) => {
        alert("Email Sent");
1 Reply
Seems like you're triggering some of the built-in protections, can you send OK via Outlook/OWA? If you continue running into this, best open a support case and work with the agent to get an exception configured.
Here's the generic error description: