I have fixed a bug in which php mail is not working. The only file I modified is class-phpmailer.php.