How to correctly fix phpMailer max execution time error?
问题 I'm using phpMailer for sending emails from localhost, but I have had to do a quick fix to its main class to get it working. When I just downloaded phpmailer and used it, i got a max execution time error in my script: Fatal error: Maximum execution time of 30 seconds exceeded in /home/lol/desktop/web/mailtest/class.phpmailer.php on line 737 So, i went to line 737 in class.phpmailer.php and found a function to validate address: public static function ValidateAddress($address) { if ((defined(