• Add @append_query_error = 1 to the call to sp_send_dbmail

    That way an email will be sent with the results of the attempt to run the query.