When I use the sp_send_dbmail stored procedure, I get a message that my mail has been queued. However, it never seems to be shipped. I can see them in the queue if I run this SQL:
SELECT * FROM msdb..sysmail_allitems WHERE sent_status = 'unsent'
This SQL returns 1:
SELECT is_broker_enabled FROM sys.databases WHERE name = 'msdb'
This stored procedure returns START:
msdb.dbo.sysmail_help_status_sp
Corresponding accounts and profiles are created, and mail works at one point. There are no errors in msdb.dbo.sysmail_event_log.
source share