Magento 1.9.1.0 订单确认电子邮件 - 不发送 [英] Magento 1.9.1.0 Order Confirmation Emails - Not Sending

查看:36
本文介绍了Magento 1.9.1.0 订单确认电子邮件 - 不发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近升级到 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 日志:/var/log/cron 以验证这一点).

确保 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

这会安排一个任务每五分钟运行一次 cron.sh.(更多阅读)

This schedules a task to run cron.sh every five minute. (More reading)

Magento 中的 AOE Scheduler 等很好的扩展可以帮助您监控和管理 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

然后改变这一行:

$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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆