Click Fraud Protection
PHP related blog, freelancer to hire!

Posts Tagged magento email

Send email to CustomerService team from magento

$templateId = 1; # Transactional emails template $mailSubject = ‘your topic’; $sender = Array(‘name’  => Mage::getStoreConfig(‘trans_email/ident_support/name’), ’email’ => Mage::getStoreConfig(‘trans_email/ident_support/email’)); $vars = Array(‘item’=>’item123’, # your vars ‘order’=>’order123’); $storeId = Mage::app()->getStore()->getId(); $translate  = Mage::getSingleton(‘core/translate’); Mage::getModel(‘core/email_template’) ->setTemplateSubject($mailSubject) ->sendTransactional($templateId, $sender, $sender[’email’], $sender[‘name’], $vars, $storeId); $translate->setTranslateInline(true);

Read more