web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

Error Sending Mail Using SQL Database Mail

Ian Grieve Profile Picture Ian Grieve 22,784
Microsoft SQL ServerI was recently doing some testing of a script I created for a client which used SQL Database Mail for sending emails. this was on my one of my demo environments, but I received an error when testing the script:
Error message

Microsoft Dynamics GP

Unhandled database exception:
[Microsoft][SQL Server Native Client 11.0][SQL Server]The EXECUTE permission was denied on the object 'sp_send_dbmail', database 'msdb', schema 'dbo'.

The solution I found was to grant permissions to public, which did work, but I’m not convinced this would be an approach to take on a clients live system:

GRANT EXECUTE on sp_send_dbmail TO public

Read original post Error Sending Mail Using SQL Database Mail at azurecurve|Ramblings of an IT Professional


This was originally posted here.

Comments

*This post is locked for comments