$mail->ClearAllRecipients();
教训:一般群发要执行一个循环,记得在用addAddress()的语句添加收件地址后,要用类似ClearAllRecipients()的语句清空一下,否则,以往的还在收件人地址里,给第一个收件人发一封,给第二个就发两次,以此类推。
SMTP Error: Data not accepted.
Mailer to l@lum.com Error: SMTP Error: Data not accepted.
SMTP server error: 5.4.5 Daily sending quota exceeded. be1sm1321092obb.11 - gsmtp
Invalid address: You must provide at least one recipient email address. Mailer to Error: You must provide at least one recipient email address.
Uncaught exception thrown in session handler.
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in _drupal_session_write() (line 209 of /home/cindere9/public_html/includes/session.inc).
The gateway did not receive a timely response from the upstream server or application.
http://drupal.org/node/23714 Configuring cron jobs using the cron command
简单的PHP的任务队列
Updated for PHPMailer v5.0.0
关于这个错误: Additional uncaught exception thrown while handling exception.
Original
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away:
解释如下:
MySQL server has gone away This section also covers the related Lost connection to server during query error. The most common reason for the MySQL server has gone away error is that the server timed out and closed the connection. In this case, you normally get one of the following error codes (which one you get is operating system-dependent).
http://php.net/manual/en/language.variables.scope.php
Variable scope