added working mailer