Share via

I have granted permission in App registration to an App but it is showing SMTP error

Faruq Bello 20 Reputation points
2026-02-27T07:19:41.5966667+00:00

We are integrating a PHP web application to send emails via SMTP using the modern OAuth 2.0 (XOAUTH2) flow for the account: PII. The Issue: We have successfully registered the Azure App. We have successfully granted Admin Consent for the delegated SMTP.Send and offline_access scopes. Our application successfully fetches a valid OAuth Access Token specifically bound to the no_reply UPN. However, when the application attempts the SMTP handshake on smtp.office365.com:587, it is immediately rejected with: 535 5.7.3 Authentication unsuccessful. What we have already checked: "Authenticated SMTP" is CHECKED under the active user's Mail ] Manage Email Apps setting. Security Defaults are DISABLED for the tenant. The Global Modern Auth setting ("Allow access to basic authentication protocols") has "Authenticated SMTP" CHECKED. We believe this account is being blocked by a hidden Conditional Access policy enforcing MFA, or the SMTP enablement has not propagated on the backend Exchange servers. Could you please review the backend logs for PII and help us exclude this service account from whatever policy is blocking the SMTP AUTH?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Faruq Bello 20 Reputation points
    2026-02-28T07:25:20.71+00:00

    Hello, I have pasted the token where you asked me to in step one, but there is nothing being displayed in the decoded token or in claims.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.