Skip to content
Home » Troubleshooting Database Mail in SQL Server

Troubleshooting Database Mail in SQL Server

Troubleshooting Database Mail

If you are not getting Database Mail after configuring it , you need to got through few more step to fix it.

How to Configure SQL Server Database Mail ?read post 

First you need to review your database mail log, may be you get some hint and able to fix it by yourself.

Go to object Explorer > click on Management folder > then Right click on Database Mail > then, Click on view database mail log

or you can run below T-SQL Code

SELECT * FROM msdb.dbo.sysmail_event_log;
SELECT * FROM msdb.dbo.sysmail_faileditems

If still you do not get any idea then check whether database mail is enabled or disabled, It should be enable.

In the result set for ‘Database Mail Xps’  the Run_value column value should be 1.

sp_configure 'show advanced', 1; 


If it is fine ,then check In case if you are using gmail SMTP server.

Database Mail works fine using the Hotmail or Outlook SMTP server details. In case of gmail we need to

configure some settings in gmail account as followings.

Open your gmail account then go to this URL

Once it opens then do enable the option to “Allow less secure apps”. This should be enabled .

How to send a SQL Server query results in e-mail message

SQL Server Database Mail Configurations

SQL Basics TutorialSQL Advance TutorialSSRSInterview Q & A
SQL Create tableSQL Server Stored ProcedureCreate a New SSRS Project List Of SQL Server basics to Advance Level Interview Q & A
SQL ALTER TABLESQL Server MergeCreate a Shared Data Source in SSRSSQL Server Question & Answer Quiz
SQL DropSQL Server PivotCreate a SSRS Tabular Report / Detail Report
..... More.... More....More
Power BI TutorialAzure TutorialPython TutorialSQL Server Tips & Tricks
Download and Install Power BI DesktopCreate an Azure storage accountLearn Python & ML Step by stepEnable Dark theme in SQL Server Management studio
Connect Power BI to SQL ServerUpload files to Azure storage containerSQL Server Template Explorer
Create Report ToolTip Pages in Power BICreate Azure SQL Database ServerDisplaying line numbers in Query Editor Window


 2,578 total views,  1 views today

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.