Fix syntax errors and pass mailer settings to the parameters template