How to use Outlook emailbox to send emails?

Developer GZ 40 Reputation points
2024-12-06T07:42:30.9533333+00:00

Our Node.js program used to use Outlook email to send emails without any issues, and provided user/password authentication using Basic. However, the Basic authentication method has recently been abandoned by Outlook mailbox, so now email sending has failed. I checked the information and it says that oauth2 authentication needs to be enabled, May I ask how to fix this issue and what tasks do I need to do? Using Outlook can successfully send emails.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,652 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,363 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 43,726 Reputation points
    2024-12-09T08:55:24.13+00:00

    Hi @Developer GZ

    This is because your tenant does not have an MS 365 subscription. When you try to access MS 365 services, you will need an MS 365 license.

    Before doing so, please purchase or start a free trial of an MS 365 subscription for your tenant. Then, go to the MS 365 Admin Center to assign the license to the user on whose behalf you are sending the mail.

    Hope this helps.

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


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.