The process of SQL Server Database Mail configuration has three main steps i.e. Create a Database Mail account Create a Database Mail profile Configure those two to work together How to send Email from Trigger in SQL Server? Enabling Database Mail USE MASTER GO SP_CONFIGURE 'show advanced options' , 1 RECONFIGURE WITH OVERRIDE GO SP_CONFIGURE 'Database Mail XPs' , 1 RECONFIGURE WITH OVERRIDE GO SP_CONFIGURE 'show advanced options' , 0 RECONFIGURE WITH OVERRIDE GO Mail Account Setup EXEC msdb . dbo . sysmail_add_account_sp @account_name = 'Test' , @description = 'Send emails using SQL Server Stored Procedure' , @email_address = 'anil.singh581@gmail.com' , @display_name = 'Test' , @replyto_address = NULL , @mailserver_name = 'smtp.gmail.com' , @username = 'anil.singh@gmail.com' , @password = '...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers