Send an email order from an administrator not working in Magento 1.8

After updating my site from 1.4 to 1.8, I can not send the order email from the admin panel.

When a new order is placed, the client receives the order email, but when I try to send the order email from the control panel, a message is displayed The order email has been sent, but neither the client nor the administrator receives the email.

I turned on logging and tried to send the order email, but it doesn't record anything. Has anyone experienced this problem or found any solutions?

+4
source share
2 answers

. "public function sendNewOrderEmail()" :

//​​ ​​/Mage/Sales//Order.php

1270, :

$emailSentAttributeValue = $this->load($this->getId())->getData('email_sent');
    $this->setEmailSent((bool)$emailSentAttributeValue);
    if ($this->getEmailSent()) {
        return $this;
    }

db sales_flat_order, , , , , . , . , / ..

//​​ ​​/Mage/Sales//Order.php

//​​/Mage/Sales//Order.php

1273

if ($this->getEmailSent()) {
            //return $this;
        }

. .

ver. 1.8.1

+16

Source: https://habr.com/ru/post/1540331/


All Articles