I created a new email template and it works fine in Magento, but I don't know how to add BCC addresses to email.
This is the answer I found:
$mailTemplate->setTemplateSubject($mailSubject)->addBcc(' youremail@mail.com ') ->sendTransactional($templateId, $sender, $email, $cus_name, $data, $storeId);
You can add the BCC to the code by which you send the email:
Mage::getModel('core/email_template') ->addBcc(' em@ail.com ') ->sendTransactional(...
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 .
Send Order Email Copy To
Send Order Email Copy Method
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; }