Jump to content

Recommended Posts

Posted

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

Posted

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!

 

Posted
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?

Posted

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

Posted

@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

Posted

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?

 

Posted

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...