Search code examples
phpmailer

PHPMailer with anti-flood protection?


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.


Solution

  • 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.