If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Hello, Is there any way to send an email every 5 minutes rather than send emails after an hour at once?
I think this would be a nice feature in mass email.
i think it would be great option. also it would be great even to specify a timeframe when to send email e.g send 10 emails every hour between 8 am and 5 pm.
Be aware, that such function not only depends on espoCRM but also on your server configuration. My provider allows as default only 60 Mails per hour. Ths is possible spam prevention.
but just to check code with all its risks, you can change the email send rate from per hour to per minute in the "SendingProcessor"
change the threshold from per hour to per minute ($threshold->modify('-1 hour'); to ($threshold->modify('-1 minute')
public function process(MassEmail $massEmail, bool $isTest = false): void
{
$maxBatchSize = $this->config->get('massEmailMaxPerMinuteCount', self::MAX_PER_MINUTE_COUNT);
if (!$isTest) {
$threshold = new DateTime();
$threshold->modify('-1 minute'); // Change from '-1 hour' to '-1 minute'
Comment