Share via

SMTP error on node.js

Anonymous
2023-10-04T13:23:44+00:00

Hi, I am stuck with my Node project's office email SMTP setup.
Basically, I am using my work email account, and when I try to send an email, I get the following error:

{

"error": {

    "code": "EAUTH",

    "response": "535 5.7.139 Authentication unsuccessful, the request did not meet the criteria to be authenticated successfully. Contact your administrator. [DX0P273CA0105.AREP273.PROD.OUTLOOK.COM 2023-10-04T13:17:17.603Z 08DBC2D210C59667]",

    "responseCode": 535,

    "command": "AUTH LOGIN"

},

"success": false,

"message": "Invalid login: 535 5.7.139 Authentication unsuccessful, the request did not meet the criteria to be authenticated successfully. Contact your administrator. [DX0P273CA0105.AREP273.PROD.OUTLOOK.COM 2023-10-04T13:17:17.603Z 08DBC2D210C59667]"

}

I try to use my personal email, and I generate an app password. When I use my personal email with the app password, then it works. The only issue is with my work email.
Can anyone help me to figure out this error?

Outlook | Web | Outlook on the web for business | Email

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-10-04T15:55:12+00:00

    Hello Jake Harris2,

    Thank you for reaching out!

    Based on your description and error message, this is most likely related to depreciation of basic authentication. The deprecation of basic authentication will also prevent the use of app passwords for Exchange accounts. In this case, authentication will fail since SMTP or basic auth is disabled for your mailbox or email address.

    A way around in this case would be reaching out to your M365/IT admin since they may have to enable SMTP Auth for your account or mailbox for this process. Enable or disable SMTP AUTH in Exchange Online | Microsoft Learn.

    Thank you for your precious time and have a great day.

    Best Regards,

    Ashraf.

    Was this answer helpful?

    0 comments No comments