Hi Xon, interesting addon - I think this is what I'm looking for (to pair with [BD] Mails), but I wanted to check a couple of things .
Does this mean e-mails will be sent as quickly as they are at the moment? For example, if a password reset button is clicked, does the user have to wait 10 mins for the queue to process - or is it instant? I send myself a test e-mail from the bulk mailer tool, but it seemed to take longer than usual to arrive.
If there is a waiting period, does it only process one batch per period, or are all queued e-mails sent?
Hi @nrep, thank you for your interest. That addon combination will work together.
Emails are deferred to the next time the mail queue is evaluated, which can take between 30 seconds to a or minute later depending on how deferred tasks are processed. Depending on load at the time (ie installing an addon and rebuilding all the caches, or re-indexing) email sending may be significantly delayed.
The addon works in batches per deferred run, and any leftovers are left for the next run of queue evaluation again and subjected to deferred task scheduling.
The batch size is configurable, with the default being 20. On my own site, I've adjusted the batch size to be 100.
The waiting period applies for when something goes wrong. If an email fails, emails are placed in a failed email queue and a cron task checks the queue every 5 minutes. There is then additional configuration to only retry failed emails every 'x' minutes.
If there is interest; I can adjust this addon so XF will try to send the email instantly and if anything goes wrong; it places it into the failed email queue rather than pushing everything through the standard XF mail queue.
The return address (aka bounce email) is burnt into the email object which has been queued for sending. So if you have a chunk of email still in the queue, they will be using the old bounce email address.