I have a job, and I'm trying to set up a notification for when it completes.
When I go in to create a new operator, I put in the email address and click Test. It tells me that "This will send the message...OK to send?". When I click OK it comes up saying "Error 22022: SQL Server Agent Error: The SQL Server Agent Mail Session is not Running;Check the mail profile and/or the SQL Server Agent Service Startup account in the SQL Server Agent Properties Dialog." When I run xp_sendmail on the same server with the same email address, it works fine. Does anybody know what is wrong? Thank you for any help.
When I go in to create a new operator, I put in the email address and click Test. It tells me that "This will send the message...OK to send?". When I click OK it comes up saying "Error 22022: SQL Server Agent Error: The SQL Server Agent Mail Session is not Running;Check the mail profile and/or the SQL Server Agent Service Startup account in the SQL Server Agent Properties Dialog." When I run xp_sendmail on the same server with the same email address, it works fine. Does anybody know what is wrong? Thank you for any help.