【问题标题】:how can i put delay in PHP mailer for sending mass emails我如何在 PHP 邮件程序中延迟发送大量电子邮件
【发布时间】:2013-07-23 10:12:01
【问题描述】:

我有每秒不能发送超过 5 封电子邮件的限制。

我正在使用 PHPMailer 5.2.6

https://github.com/PHPMailer/PHPMailer/

有什么办法可以在 5 封电子邮件后延迟 1 秒

我在 PHP 脚本中使用 sendmail 并使用 cron 作业发送电子邮件

【问题讨论】:

  • 你真的需要特定于 PHPMailer 的东西吗?不能只用PHP的sleep函数吗?

标签: php linux cron centos phpmailer


【解决方案1】:

在循环中使用 sleep(1) 延迟 1 秒

【讨论】:

    猜你喜欢
    • 2013-03-31
    • 2016-12-12
    • 1970-01-01
    • 1970-01-01
    • 2012-06-26
    • 2010-10-08
    • 2011-07-01
    • 1970-01-01
    • 2016-09-28
    相关资源
    最近更新 更多