We have successfully setup Database Mail, and I am able to right click and 'Send Test E-Mail' and it works perfect. We have a few jobs setup in SQL Server Agent, and if the job fails it should e-mail us. Recently a job failed, but no e-mail. So I looked at the job log and see:
NOTE: Failed to notify 'Development' via email.
I confirm under Operators we have `Development` with the e-mail address I would like the error message to go to. Any ideas what would cause this?
Make sure you have set DBmail to be used for alerts in the agent profile.
Right click SQL server agent properties Alert system tick on Enable mail profile and choose Database mail and one of the mail profile and restart SQL agent.
Thanks,
Leks
Found the problem. Have to right click the SQL Server Agent and click properties. Then in that popup that is a place to enable notifications, and select Database Mail and the profile. Kind of hidden a bit, hopefully helps others.
Marked As Answer byJustinK101Tuesday, March 02, 2010 12:52 AM
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.