title: Failure to execute msdb.dbo.sp_send_dbmail
body: <p>I am getting this error:</p>
  
  <blockquote>
    <p>Msg 229, Level 14, State 5, Procedure sp_send_dbmail, Line 1<br>
    The EXECUTE permission was denied on the object 'sp_send_dbmail', database 'msdb', schema 'dbo'.</p>
  </blockquote>
  
  <p>The relevant part of the code:</p>
  
  <pre><code>/****** Object:  StoredProcedure [dbo].[dbo.STATUSCHANGE_EMAILALERT] ******/
  
  EXEC msdb.dbo.sp_send_dbmail
    @recipients = 'Test@gmail.com', -- Group Email
    @subject = 'Employee Status Update',
    @profile_name ='Test@gmail.com', -- Setup the profile name group
    @body = @body,
    @body_format = 'HTML';
  </code></pre>