Enabling OAuth 2.0 for SQL Server Database Mail System

Avinash 115 Reputation points
2024-12-26T10:43:38.2233333+00:00

Hello Team, I previously encountered an issue with sending emails from SQL Server where I received an authentication error due to basic authentication being disabled. The team suggested implementing OAuth 2.0, but I struggled to find proper articles or video references for this implementation. Can anyone please help with guidance on how to implement OAuth 2.0 for SQL Server Management Studio (SSMS)?

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
SQL Server Other
{count} vote

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2024-12-26T16:56:34.9666667+00:00

    SQLServers database email does not support oauth only basic. Here are some options

    https://techcommunity.microsoft.com/blog/exchange/exchange-online-to-retire-basic-auth-for-client-submission-smtp-auth/4114750

    0 comments No comments

  2. LiHongMSFT-4306 31,566 Reputation points
    2024-12-27T04:16:07.87+00:00

    Hi @Avinash

    Refer to this doc for detail steps: Authenticate an IMAP, POP or SMTP connection using OAuth.

    Best regards,

    Cosmog


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

    0 comments No comments

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.