Link to home
Start Free TrialLog in
Avatar of laurenofis
laurenofisFlag for United States of America

asked on

SQL Management Studio does not send email alerts

I have a job in the SQL management studios to run a nightly backup.

In the notifications section I have it to email me when the job succeeds.

Even though the job is working correctly it is not sending out the me email.

I do have database mail setup and I can send test emails.


Thanks
Avatar of Mark Bill
Mark Bill
Flag of Ireland image

Can you run message tracking from the exchange troubleshooting section on the mail server specified for database mail? this will help track down the mail.

Also you can try and telnet the mail server and replicate the sending of the mail manually.

You could also check to see if the SQL server has permission to relay through the exchange server!
ASKER CERTIFIED SOLUTION
Avatar of Aneesh
Aneesh
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Most of the time the easiest way to find out why mail is not going out is to check tha Database Mail Log via SSMS->Managament->right click Database Mail and select "View Database mail Log".
Also most of the time a simple mail service restart by running SQL below cleares simple database mail issues.

use msdb
go

exec msdb..sysmail_stop_sp;
GO
exec msdb..sysmail_start_sp;
GO


This is where your sent/unsent mails are:

use msdb
go

select * from msdb..sysmail_unsentitems
go

select top 100 * from msdb..sysmail_sentitems s
--where recipients like '%quickstart%'
--where subject like '%web%'
order by s.sent_date desc
go