fixed type hinting of Mailer
Merge pull request #1194 from sstok/patch-3

fixed type hinting of Mailer