Update mail.class.php

PHP Notice
Merge pull request #1523 from nonstopmine/patch-3

Update mail.class.php