December 21, 2016 at 3:56 pm
See attached file.
It does not give an error but also I do not receive an email ( I did replace the actual email addresses for security reasons )
Now if I run the same SP in another server, I get the same output but I also receive the email coming to my gmail.
How can we further troubleshot ?
December 21, 2016 at 4:06 pm
look to see what database mail has to say about the specific message; it could be that a firewall issue prevents connections, or you misspelled a password or something:
SELECT top 100
mail.send_request_date As SentDate,
sent_status As Reason,
err.[description],
mail.*
FROM [msdb].[dbo].[sysmail_allitems] mail
inner join [msdb].[dbo].[sysmail_event_log] err
ON err.mailitem_id = mail.mailitem_id
WHERE mail.sent_status <> 'sent'
order by mailitem_id desc
Lowell
December 21, 2016 at 7:40 pm
Run Lowell's query on the server that isn't sending the email. If you haven't set up database mail, it won't send.
December 22, 2016 at 8:28 am
Ed: It used to send , suddenly it stopped.
December 22, 2016 at 8:53 am
mw112009 (12/22/2016)
Ed: It used to send , suddenly it stopped.
Is database mail still set up correctly? What did Lowell's query return?
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply