fixed the mail class
Merge pull request #29 from KennethAS/devmax

fixed the mail class