i deployed a azure web app website,tried to call office365 outlook smtp email service, but the email is denied by outllook. RRS feed

  • Question

  • dear,office365 and Azure Support:

    i had deployed a asp.net core website to azure web app,[use Korea  azure region],and tried to use system.net.smtp to call my outlook smtp email service from office365  plan or now called microsoft 365. but this called send email is failed, the system showed the access is denied.

    however,this asp.net core website worked well in my local windows 10 pc ,and send email worked well.

    but when it is published on azure web app ,its email service is not work,and i attached my email's Diagnostic information as below:

    Diagnostic information for administrators:

    Generating server: SG2PR06MB3643.apcprd06.prod.outlook.com

    Remote Server returned '550 5.7.708 Service unavailable. Access denied, traffic not accepted from this IP. For more information please go to http://go.microsoft.com/fwlink/?LinkId=526653 AS(7171) [SG2PR06MB3259.apcprd06.prod.outlook.com]'

    Original message headers:

    Received: from SG2PR06MB3643.apcprd06.prod.outlook.com
     ([fe80::d128:d2e4:e46a:5246]) by SG2PR06MB3643.apcprd06.prod.outlook.com
     ([fe80::d128:d2e4:e46a:5246%3]) with mapi id 15.20.3021.029; Sun, 24 May 2020
     14:56:00 +0000
    MIME-Version: 1.0
    Content-Type: text/plain
    Date: Sun, 24 May 2020 14:56:00 +0000
    Subject: =?gb2312?B?0ru34sC019TP88rlyuXX1Lao0uXT8rXE08rP5A==?=


    so, i had to leave this topic, asking for help,could azure web service call a office365 outlook smtp email service?

    Monday, May 25, 2020 2:34 AM

All replies