making emails work with locales