Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add BCC in Magento Transactional Email

Tags:

magento

I created a new email template, and that works fine in Magento, but I don't know how to add BCC addresses to the email.

like image 415
Maheswari Avatar asked Feb 01 '13 07:02

Maheswari


2 Answers

You can add a bcc in the code where you send the email:

Mage::getModel('core/email_template')
     ->addBcc('[email protected]')
     ->sendTransactional(...
like image 79
Péter Gulyás Avatar answered Sep 23 '22 16:09

Péter Gulyás


This is the answer I've found:

 $mailTemplate->setTemplateSubject($mailSubject)->addBcc('[email protected]')
->s‌​endTransactional($templateId, $sender, $email, $cus_name, $data, $storeId);
like image 27
Maheswari Avatar answered Sep 22 '22 16:09

Maheswari