Fixed mail Exception
Fix phpdoc
Merge pull request #4621 from Xety/3.0-fix-mail-exception

3.0 Fix mail Exception