Using SQL Server 2016.
Just curious what gurus are using to send email notifications on failed jobs. I have an SP that generates the email contents based on the SP(s) that calls it when a job fails.
The reason I 'm asking is a recent security audit flags all the following needs to be turned off.
1. 'Database Mail XPs' Server Configuration Option is set to '0'
2. 'SQL Mail XPs' Server Configuration Option is set to '0'
3. 'Ole Automation Procedures' Server Configuration Option is set to '0'
And based on the following example, it looks like even sp_send_dbmail requires 'Database Mail XPs' to be turned on.
What is the best practice? What is the solution the guru here are using? Any example(s) SP generating the email and sending it without turning the 3 options on?