I'd mention the instance host at least, but YesodMailSend (which I wrote) provides pure functions for the formatting, so can't access environment Sometime I'll try to patch yesod-mail-send to have a monadic action there instead of pure function