Fixed issue with incorrect parameter count in send_templated_email.