Magento 1.9.1.0订单确认电子邮件-未发送 [英] Magento 1.9.1.0 Order Confirmation Emails - Not Sending
问题描述
我最近升级到Magento的CE 1.9.1.0和我们的订单确认邮件没有被发送给客户或这里是设置员工收到通知.
I've recently upgraded to Magento CE 1.9.1.0 and our order confirmation emails are not being sent to customers or the employees here that are setup to receive notifications.
我检查了电子邮件日志和没有看到电子邮件打在所有的服务器.
I checked the Email Logs and don't see the emails hitting the server at all.
电子邮件来自联系表单",新用户帐户注册"以及我在服务器上创建的一些测试脚本.我确信,禁用电子邮件通讯设置为无".
Emails come through from the Contact Form, New User Account Signup and a few test scripts I created on the server. I made sure that Disable Email Communications was set to "No".
任何想法?他们在1.7.0.2伟大的工作,我们升级了.
Any ideas? They worked great in 1.7.0.2 before we upgraded.
推荐答案
从开始的的Magento 1.9 订单确认电子邮件不期间发送的结帐了,而不是它们被发送用的的Cron 即可.要正确地验证这一点的作品:
Starting from Magento 1.9 the order confirmation emails are not sent during checkout anymore, instead they are sent with the Cron. To verify this works properly:
-
请确保您的系统cron是启动和运行(您可以检查的Cron日志:
验证).
make sure your system Cron is up and running (you can check the Cron logs:
/var/log/cron
to verify that).
确保Magento Cron正确设置并每隔几分钟运行一次.您应该看到这样的事情在你的系统的crontab的:
make sure Magento Cron is setup correctly and is running every some minutes. You should see something like this in the Crontab of your system:
*/5 * * * * /public_html/cron.sh
此计划任务运行
有像 AOE调度良好的扩展Magento中,帮助您监视和管理Cron作业.
There are good extensions like AOE Scheduler in Magento that help you to monitor and manage Cron jobs.
此的另一种方式是将禁用所述的Cron这些种类的电子邮件(订单确认).要做到这一点,你可以去这个路径:
An alternative way to this is to disable the Cron for these kind of emails (order confirmation). To do this you can go to this path:
public_html/app/code/core/Mage/Sales/Model/Order.php
复制该文件并把它此路径(如果该路径不存在创建它):
Copy that file and bring it to this path (if the path doesn't exist create it):
public_html/app/code/local/Mage/Sales/Model/Order.php
然后改变这一行:
And then change this line:
$mailer->setQueue($emailQueue)->send();
收件人:
$mailer->send();
不过,我建议花一些时间来设置的Cron来代替.我想,如果他们想使用cron这些电子邮件这是有原因的.
However I recommend spending some time to setup the Cron instead. I think if they wanted to use Cron for these emails it's for a reason.
这篇关于Magento 1.9.1.0订单确认电子邮件-未发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!