Philooo Posted May 26 Share Posted May 26 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... Link to comment Share on other sites More sharing options...
Randy Calvert Posted May 26 Share Posted May 26 No, there is not a way to throttle the sending speed of email. Link to comment Share on other sites More sharing options...
DawPi Posted May 26 Share Posted May 26 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! Philooo and SeNioR- 2 Link to comment Share on other sites More sharing options...
Philooo Posted May 28 Author Share Posted May 28 Thanks ! The link in the enclosed pic also gives me answer about customizing emails Link to comment Share on other sites More sharing options...
Marc Stridgen Posted Tuesday at 07:38 AM Share Posted Tuesday at 07:38 AM 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. Link to comment Share on other sites More sharing options...
Richard Arch Posted Tuesday at 09:51 AM Share Posted Tuesday at 09:51 AM 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? Link to comment Share on other sites More sharing options...
Marc Stridgen Posted Tuesday at 09:57 AM Share Posted Tuesday at 09:57 AM 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 Link to comment Share on other sites More sharing options...
Richard Arch Posted Tuesday at 10:31 AM Share Posted Tuesday at 10:31 AM 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? Link to comment Share on other sites More sharing options...
Marc Stridgen Posted Tuesday at 10:33 AM Share Posted Tuesday at 10:33 AM Yes, it would be every minute Richard Arch 1 Link to comment Share on other sites More sharing options...
Richard Arch Posted Tuesday at 10:34 AM Share Posted Tuesday at 10:34 AM Excellent, thanks for clarifying. Link to comment Share on other sites More sharing options...
Marc Stridgen Posted Tuesday at 11:12 AM Share Posted Tuesday at 11:12 AM @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 Link to comment Share on other sites More sharing options...
Richard Arch Posted Tuesday at 02:00 PM Share Posted Tuesday at 02:00 PM 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? Link to comment Share on other sites More sharing options...
Marc Stridgen Posted Tuesday at 02:28 PM Share Posted Tuesday at 02:28 PM 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 Link to comment Share on other sites More sharing options...
Recommended Posts