在 Magento 1.6 中发送异步电子邮件

Send asynchronous emails in Magento 1.6

在 Magento 中如何异步发送电子邮件(订单、新用户等)?

在我的生产实例中,像 $mailer->send(); 这样的调用大约需要 40 到 60 秒。

我最终使用 Redis 作为排队机制,其中邮件详细信息将被推送到基于 Redis 列表的队列(使用 lpush 命令)并在工作人员处弹出(使用 brpop 命令)