Need to add missing parameters such as @importance and @sensitivity.
Obviously not all parameters are relevant, and there would be extra parameters beyond those in sp_send_dbmail, but those that are common to both procedures, should be aligned properly.
Also, the order of the parameters must be such so that all mandatory parameters would be in the beginning (right now @subject is mandatory but it's placed after non-mandatory parameters. So either move it to the beginning, or make it non-mandatory as well).
Need to add missing parameters such as @importance and @sensitivity.
Obviously not all parameters are relevant, and there would be extra parameters beyond those in
sp_send_dbmail
, but those that are common to both procedures, should be aligned properly.Also, the order of the parameters must be such so that all mandatory parameters would be in the beginning (right now @subject is mandatory but it's placed after non-mandatory parameters. So either move it to the beginning, or make it non-mandatory as well).