简体   繁体   English

Magento版本 1.9.2.1-不发送电子邮件

[英]Magento ver. 1.9.2.1 - Not sending out emails

Got a bit of a strange issue, regarding emails being sent, on our server it used to use postfix and there was a mail.log in /var/log but we have noticed that it has disappeared and is now using phpmail.log instead. 关于发送电子邮件,在我们的服务器上曾经使用后缀,并且在/ var / log中有一个mail.log时遇到了一个奇怪的问题,但是我们注意到它已经消失了,现在正在使用phpmail.log代替。

Is there a way we can get the mail log back? 有什么方法可以让我们重新获得邮件日志? Or is there anything in phpmail that we could check and see why its not sending. 还是phpmail中有什么我们可以检查并查看为什么不发送的东西。

Thanks 谢谢

Go to Template.php, is located in the path /app/code/core/Mage/Core/Model/Email/Template.php . 转到位于路径/app/code/core/Mage/Core/Model/Email/Template.php中的Template.php。 Find and lock the line "if ($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue) {" and "if (false) {" under it. 找到并锁定行“ if($ this-> hasQueue()&& $ this-> getQueue()instance of Mage_Core_Model_Email_Queue){”和其下的“ if(false){”。
Eg.- 例如。-
//if ($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue) { if (false) { // if(Mage_Core_Model_Email_Queue的($ this-> hasQueue()&& $ this-> getQueue()实例){if(false){
Now place an order and check. 现在下订单并检查。 [Also you have to set order email address from Admin panel ] [此外,您还必须在管理控制台中设置订单电子邮件地址]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM