@vivek++ Fix some errors in mailer and successfully test that it works