fixed type hinting of Mailer