英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论