Fix for smtp mailer class