Add BCC to Magento Transactional Email

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

+6
source share
4 answers

This is the answer I found:

$mailTemplate->setTemplateSubject($mailSubject)->addBcc(' youremail@mail.com ') ->s‌​endTransactional($templateId, $sender, $email, $cus_name, $data, $storeId); 
+4
source

You can add the BCC to the code by which you send the email:

 Mage::getModel('core/email_template') ->addBcc(' em@ail.com ') ->sendTransactional(... 
+11
source

You can do this in the config. Go to Sales> Email Sales. Before transactional email, you can enter Send Order Email Copy To and set the BCC method via the Send Order Email Copy Method .

+3
source

Email or email is valid, check this:

Application \ Code \ Kernel \ Mage \ Kernel \ Model \ Email \ template.php

 Mage_Core_Model_Email_Template public function addBcc($bcc) { if (is_array($bcc)) { foreach ($bcc as $email) { $this->getMail()->addBcc($email); } } elseif ($bcc) { $this->getMail()->addBcc($bcc); } return $this; } 
+1
source

All Articles