refs #87 fixed sonar issues in mailer class