PHPMailer带有防洪保护吗?

huangapple go评论95阅读模式
英文:

PHPMailer with anti-flood protection?

问题

我目前使用的是SwiftMailer 6.3.0,它具有抗洪插件,或者更新的SymfonyMailer使用"restart_threshold"或"max_per_second"。在PHPMailer中是否有类似的功能?在文档中我找不到相关信息。

英文:

I use currently swiftmailer 6.3.0 which have a anti-flood plugin or newer SymfonyMailer use "restart_threshold" or "max_per_second". Is there something similar in PHPMailer? In the documentation I found nothing.

答案1

得分: 1

不是。这是PHPMailer范围之外的应用程序级关注点。大多数应用程序框架(例如Laravel)都具有速率限制控制,可以执行此类操作。或者,可以在本地邮件服务器中实施发送速率限制,这将比在PHP中执行的任何操作都更高效。

英文:

No. That’s an app-level concern outside of PHPMailer’s scope. Most app frameworks (e.g. Laravel) have rate limit controls to do this kind of thing. Alternatively, implement sending rate limits in your local mail server, which will be far more efficient than anything you can do in PHP.

huangapple
  • 本文由 发表于 2023年6月25日 23:11:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/76551075.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定