Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. foreach ($rows as $row) {
  2. Mage::helper("module_name")->sendEmail($row);
  3. }
  4.  
  5. $appEmulation = Mage::getSingleton('core/app_emulation');
  6. $initialEnvironmentInfo = $appEmulation->startEnvironmentEmulation($order->getStoreId());
  7.  
  8. $mailTemplate->sendTransactional(
  9. $schedule->getEmailTemplateId(),
  10. $sender,
  11. $recipient,
  12. null,
  13. $templateVars,
  14. $order->getStoreId()
  15. );
  16.  
  17.  
  18. $appEmulation->stopEnvironmentEmulation($appEmulation);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement