-
- alistek

-
Total Posts: 293
Joined: 2008-04-02
Normal, IL
|
Not sure why that might not work and for future reference, copy the backtrace off of the report but it is throwing an problem. I would take a look at whatever the Magento method of throwing an e-mail and add it to the controller.
$mailTemplate = Mage::getModel('core/email_template'); $mailTemplate->addBcc($bcc);
$mailTemplate->setDesignConfig(array('area'=>'frontend', 'store'=>$this->getStoreId())) ->sendTransactional( 'sales_email/order/template', 'sales_email/order_comment/identity', $this->getCustomerEmail(), $customerName, array( 'order' => $this, 'billing' => $this->getBillingAddress(), 'payment_html' => $paymentBlock->toHtml(), 'items_html' => $itemsBlock->toHtml(), ) );
You can use something like that, it is pulled out of Order.php in Sales/Model. That should get you started.
-Adam
|