Repository navigation
how to make email sending faster? #9180
Replies: 1 comment
|
Yes, it works in 3.0.1, and the commented Transport: use Doctrine. Then uncomment the I'd also enable the Two things to know about
A local Postfix relaying to SparkPost would also make page requests fast, since handing mail to localhost is quick. But you'd be running an MTA and its queue instead of a PHP worker. If you already run cron or supervisor for Chamilo, Messenger is less to maintain and keeps retries visible from the console. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Version 3.0.1
We send through SMTP with SparkPost. Even a session subscription that sends 2 emails takes noticeably long, because the request waits for every SMTP delivery. We plan to send around 300 emails at once (course announcements by email, bulk user imports), and we are worried about slow pages and timeouts cutting a send in the middle.
We saw that in config/packages/messenger.yaml the routing of Symfony\Component\Mailer\Messenger\SendEmailMessage
to an async transport is commented out (when@prod block).
Is enabling that async transport, with a messenger:consume worker, supported or recommended for Chamilo 3.0?
If it is: which transport (Doctrine, Redis…), and is there any known issue with the DB-based mailer_dsn setting
(MailTransportDecorator) when emails are sent from the worker?
If it isn't: what is the recommended setup for this volume? For example, a local MTA (Postfix) relaying to
SparkPost, or another approach.
Thanks!
All reactions