In Magento how to send emails (order, new user etc) asynchronously?
In my production instance calls like $mailer->send();
takes around 40 to 60 seconds.
I ended up using Redis for queuing mechanism, where in mail details would be pushed to Redis list based queue (using lpush
command) and poped at the worker (using brpop
command)