Skip to content

Instantly share code, notes, and snippets.

@malithmcr
Last active November 13, 2017 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malithmcr/448c49d93de8315ab45bfa716758dea9 to your computer and use it in GitHub Desktop.
Save malithmcr/448c49d93de8315ab45bfa716758dea9 to your computer and use it in GitHub Desktop.
Send Magento order confirmation email programmatically
<?php
$order = new Mage_Sales_Model_Order();
$incrementId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
$order->loadByIncrementId($incrementId);
try {
$order->sendNewOrderEmail();
} catch (Exception $ex) { }
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment