I am getting this error:
Msg 229, Level 14, State 5, Procedure sp_send_dbmail, Line 1 The EXECUTE permission was denied on the object \'sp_send_dbma
Grant execute permission on sp_send_dbmail to the user executing the stored procedure, or add them to the role msdb.DatabaseMailUser .
sp_send_dbmail
msdb.DatabaseMailUser