Enabling OAuth 2.0 for SQL Server Database Mail System

Avinash 20 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
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,221 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 68,636 Reputation points
    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 29,516 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.