Script to replace the mautic:emails:send cronjob

Hey Joey

There was a merged pull request regarding this multi threading sending:

Relevant part is this info from kuzmany:

The thing is I don’t know if this ever happened in mautic swiftmailer:

Also need fix in swiftmailer Add flock lock on message during queue flushing by Dcoutelle · Pull Request #1270 · swiftmailer/swiftmailer · GitHub

So maybe a patched is needed.

This would be the patch:
https://patch-diff.githubusercontent.com/raw/swiftmailer/swiftmailer/pull/1270.diff

So I think this patch is still needed (Because I apply in mautic 4.4.10 and it was applied cleanly)

To apply just do in the mautic root:

cd vendor/swiftmailer/swiftmailer
curl -L https://patch-diff.githubusercontent.com/raw/swiftmailer/swiftmailer/pull/1270.diff | git apply -v

Should output something like:

Checking patch lib/classes/Swift/FileSpool.php…

Applied patch lib/classes/Swift/FileSpool.php cleanly.

1 Like