Philooo Posted May 26, 2023 Posted May 26, 2023 I will have to email my community about some news and evolutions. I made some tests with the bulk email system. It sends around 700 emails in 2 minutes. 5 to 6 emails per second. I think it can generate some problems. - It is a spammer speed degrading server reputation - Some hosting companies have hourly limits - As all mail arrives in a short period of time, there is an influx of connections to the site at the same time is the a way to manage email sending speed ? By example : 1 email each 2 seconds, or other...
Randy Calvert Posted May 26, 2023 Posted May 26, 2023 No, there is not a way to throttle the sending speed of email.
DawPi Posted May 26, 2023 Posted May 26, 2023 You may adjust that by adding it to constants.php file: If your web host or email provider cannot handle sending many emails at once, you can optionally add the following line to your constants.php to set a number to process per bulk mail cycle. In this example we are setting it to 25 per task cycle. define ( 'BULK_MAILS_PER_CYCLE', 25 ); Use 100 or higher. Make sure that your hosting provider handle that large number mails per batch! SeNioR- and Philooo 2
Philooo Posted May 28, 2023 Author Posted May 28, 2023 Thanks ! The link in the enclosed pic also gives me answer about customizing emails
Marc Posted May 30, 2023 Posted May 30, 2023 It is worth noting that this will only adjust how many are sent per cycle, and will not slow the rate at which those are sent.
Richard Arch Posted May 30, 2023 Posted May 30, 2023 2 hours ago, Marc Stridgen said: It is worth noting that this will only adjust how many are sent per cycle, and will not slow the rate at which those are sent. Can you clarify what "per cycle" means?
Marc Posted May 30, 2023 Posted May 30, 2023 Every time it tries to send bulk mail (this is per cycle) it will try to send x amount. So you can change x amount, but the cycles will just keep running one after another
Richard Arch Posted May 30, 2023 Posted May 30, 2023 How often is a "cycle"? Is it linked to the Task Method, so when the tasks are driven by a cron job as recommended, is it every minute?
Marc Posted May 30, 2023 Posted May 30, 2023 @Richard Arch for further clarification, the background task will continue to run over and over until it runs out of time (as much as it can in 90 seconds) or memory. So it will run over and over constantly, and the setting you are changing there will have no impact
Richard Arch Posted May 30, 2023 Posted May 30, 2023 Not sure I understand. Lets say we have 1000 emails and we set BULK_MAILS_PER_CYCLE to 100. With the task running every minute I would expect 100 emails to be sent every minute and fully completed in 10 minutes. Is that not the case?
Marc Posted May 30, 2023 Posted May 30, 2023 No, it would continuously run until its completed as it would start again immediately after the first. If you are sending more than your mail provider can handle, the only answer is to use a different mail provider that can handle what you are sending Richard Arch 1
Recommended Posts