In my store, I created a custom module for the one-step verification process.
All code is working fine. But a letter with a detailed description of the order is not sent to the client after the checkout process. Here is the relevant part of my code.
$service = Mage::getModel('sales/service_quote', $quote); $service->submitAll(); $order = $service->getOrder(); //This one is the email send code $order_mail = new Mage_Sales_Model_Order(); $incrementId = Mage::getSingleton('checkout/session')->getLastRealOrderId(); $order_mail->loadByIncrementId($incrementId); $order_mail->sendNewOrderEmail(); $this->_redirect('downloadable/customer/products/');
source share