As a user of the SQL server, you may want to receive automatic email updates on specified conditions from the database. You might have some jobs running on SQL Server. For example, you want to get alerts when any of the database objects are created or altered or any of your SQL jobs fail. Manually monitoring these jobs needs a lot of hectic work. So we need automatically generated email alerts which can be used in triggers to send you an email notification when needed. So in order to send alerts, we need to learn how to configure database mail using the Gmail account.
Setting up Database Mail in SQL Server using Gmail
There are two ways to set up Database Mail, either using the stored procedures included with SQL Server or using SQL Server Management Studio (SSMS). In this article, we will discuss how to configure Database mail using SSMS.
Setting Gmail account to enable less secure apps to be accessed.
In order to enable access to the less secure app in the Gmail account to follow the following steps.
Setting up SQL Server Mail Database to use Gmail by using GUI /SQL Server Management Studio
In this example, we will discuss steps to set up the configuration of the Database Mail. Follow these steps in order to configure the mail database to use Gmail using SSMS.
How to Rename a SQL Server database?How to Monitor your Database Performance using Database Performance Analyzer?How to Split a String by a Delimited Char in SQL Server?How to Fix the Error ‘A Network-related or Instance-specific Error occurred…