setup db mail

Enable the Database Mail XPs: USE master GO sp_configure ‘show advanced options’,1 GO RECONFIGURE WITH OVERRIDE GO sp_configure ‘Database Mail XPs’,1 GO RECONFIGURE GO Create a new mail profile: USE msdb GO EXECUTE msdb.dbo.sysmail_add_profile_sp @profile_name = ‘admin’, @description = ‘Profile for sending Automated DBA Notifications’…