Small reorganization of getMailer method