chpicker
Programmer
- Apr 10, 2001
- 1,316
I configured a SQL Server to send email on Friday. It was working just fine. The "Send test email..." selection in Management Studio worked, as did this:
As of today, the above code no longer works. It results in the following error:
The "Send test email..." function still works properly.
My research into the error has turned up nothing that works. On Microsoft's own web site, they claim that there are only 2 possible causes of this message: either the profile doesn't actually exist, or the user doesn't have permission to use it. As far as I can tell, neither of these is correct; I've verified that the profile still exists, and I'm connected as a sysadmin on the database instance, which is supposed to have permission to all profiles.
Any ideas? I've been beating my head against this wall all day.
Code:
exec msdb.dbo.sp_send_dbmail 'user@contoso.com','Test body','Test subject','TestProfile'
Code:
Msg 14607, Level 16, State 1, Procedure sysmail_verify_profile_sp, Line 42
profile name is not valid
My research into the error has turned up nothing that works. On Microsoft's own web site, they claim that there are only 2 possible causes of this message: either the profile doesn't actually exist, or the user doesn't have permission to use it. As far as I can tell, neither of these is correct; I've verified that the profile still exists, and I'm connected as a sysadmin on the database instance, which is supposed to have permission to all profiles.
Any ideas? I've been beating my head against this wall all day.