[master] Fix mailer factories for frontend