configured action mailer for dev and production modes.