finish action mailer configuration and change environmental variables