xp_sendmail: failed with mail error 0x80004005
Ever get this error with MS SQL2000?
Microsoft would have you doing all sorts of shenanigans with Active Directory.
In my case, xp_sendmail would work fine from one server, but not another. They both used the same AD account, so that didn't seem too logical of a fix.
Restarting SQL Server Agent service didn't help. Simply running these 2 stored procedures fixed it:
EXEC xp_startmail
All I can figure is that there was a communication breakdown between my SQL server and Exchange and SQL doesn't recover very gracefully from that.

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
[Add Comment]
This has bugged me on and off for years... works perfectly.
Thanks.
[Add Comment]