![](/img/trans.png)
[英]Asynchronous Call To Send Emails ( After Button Click And Before Redirection.)
[英]Send asynchronous emails in Magento 1.6
在Magento中,如何異步發送電子郵件(訂單,新用戶等)?
在我的生產實例中,像$mailer->send();
這樣的調用$mailer->send();
大約需要40到60秒。
我最終將Redis用於排隊機制,在該機制中,郵件詳細信息將被推送到基於Redis列表的隊列(使用lpush
命令)並在工作brpop
(使用brpop
命令)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.