How to send SMTP emails ?

JulianS 0 Reputation points
2025-08-14T10:21:27.3266667+00:00

How to send SMTP emails using Exchange ?

I already created an application, gave it permission, i am still getting error

535 5.7.3

I followd this tutorial , no luck

https://learn.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
0 comments No comments
{count} votes

Accepted answer
  1. Hin-V 2,155 Reputation points Microsoft External Staff Moderator
    2025-08-14T11:01:24.0733333+00:00

    Hi @Julian Somesan

    Thank you for posting your question in Microsoft Q&A. 

    As you description, looks like you are encountering: 535: 5.7.3 Authentication unsuccessful. For this error, on the Exchange online side, in addition to enabling authenticated SMTP submission, you could follow these steps to troubleshoot it: 

    1.Use Exchange Online PowerShell to verify that authenticated SMTP submission (also known as SMTP AUTH) is enabled on the licensed mailbox that the printer or application is using to connect to Microsoft 365 or Office 365: 

    In Exchange Online PowerShell, replace <EmailAddress> with the email address and run the following command: 

    Get-CASMailbox -Identity <EmailAddress> | Format-List SmtpClientAuthenticationDisabled  
    

    If the value is True, replace <EmailAddress> with the email address and run the following command to enable it: 

    Set-CASMailbox -Identity <EmailAddress> -SmtpClientAuthenticationDisabled $false
    

    2.Disable multifactor authentication (MFA) on the licensed mailbox that's being used: 

    • In the Microsoft 365 admin center, in the left navigation menu, choose Users > Active users
    • On the Active users page, choose Multi-Factor Authentication
    • On the multi-factor authentication page, select the user and disable the multifactor authentication status. 

    3.Exclude the user from a Conditional Access policy that blocks Legacy Authentication

    • Sign in to the Azure portal as a Security administrator or Conditional Access administrator. 
    • Browse to Microsoft Entra ID > Security > Conditional Access
    • In the policy that blocks Legacy Authentication, exclude the mailbox being used under Users and Groups > Exclude
    • Select Save

    You can refer more via: Error: Authentication unsuccessful. 

    User's image

    Please understand that our initial reply may not always immediately resolve the issue. However, with your respond and more detailed information, we can work together to find a solution.   

    If you have any additional concern, feel free to comment below. I be more than happy to assist.


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

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 

    Accept answer 1 answer

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. JulianS 0 Reputation points
    2025-08-14T12:37:49.71+00:00
    1. SmtpClientAuthenticationDisabled : False
    2. MFA is no enabled
    3. There is no conditional access rules
    0 comments No comments

  2. JulianS 0 Reputation points
    2025-08-14T13:16:30.55+00:00

    Just to annoy the next one with the same problem , i found the fix , but was none of the above


Your answer

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