Change mailer setup to use env vars