first try at configuring mailer and environment variables