code optimisation in mail class

- better default params for constructor
- fixed minor bug
Merge pull request #14 from communitales/master

code optimisation in mail class