From 89a15ee9c6d5339449af83c8883de5f1c81645fe Mon Sep 17 00:00:00 2001 From: seansan Date: Sat, 6 Feb 2016 14:54:55 +0100 Subject: [PATCH] [bug-#64] Can't re-send customer order mail via backend http://magento.stackexchange.com/a/37690/78 Irritating "new" feature so order emails cannot be resent --- .../core/Mage/Adminhtml/controllers/Sales/OrderController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php b/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php index 2ae790c46875..aa408f2ca382 100644 --- a/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php +++ b/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php @@ -136,6 +136,8 @@ public function emailAction() { if ($order = $this->_initOrder()) { try { + // FIX. Enable re-sending again - http://magento.stackexchange.com/a/37690/78 + $order->setEmailSent(false); $order->sendNewOrderEmail(); $historyItem = Mage::getResourceModel('sales/order_status_history_collection') ->getUnnotifiedForInstance($order, Mage_Sales_Model_Order::HISTORY_ENTITY_NAME);