Use figaro. Configured mailer to pick up ENV variables for base URL