Refactoring variables in class mail.php