cancel
Showing results for 
Search instead for 
Did you mean: 

In New Customer Welcome Email, set BCC

In New Customer Welcome Email, set BCC

Like order emails, I want to set Bcc in "a new customer welcome email" which the new customer receives when registers as a customer.

 

Magento version is 1.9.2.2

 

I found this below at public_html/app/code/core/Mage/Customer/Model/Customer.php

 

I added bold code. But it doesn't work. 

 

Please help me.

 

public function sendNewAccountEmail($type = 'registered', $backUrl = '', $storeId = '0', $bcc = '')
{
$types = array(
'registered' => self::XML_PATH_REGISTER_EMAIL_TEMPLATE, // welcome email, when confirmation is disabled
'confirmed' => self::XML_PATH_CONFIRMED_EMAIL_TEMPLATE, // welcome email, when confirmation is enabled
'confirmation' => self::XML_PATH_CONFIRM_EMAIL_TEMPLATE, // email with confirmation link
);
if (!isset($types[$type])) {
Mage::throwException(Mage::helper('customer')->__('Wrong transactional account email type'));
}

if (!$storeId) {
$storeId = $this->_getWebsiteStoreId($this->getSendemailStoreId());
}

if (!$bcc) {
$bcc = array("sample@domain.com");
$this->addBcc($bcc);
}

 

$this->_sendEmailTemplate($types[$type], self::XML_PATH_REGISTER_EMAIL_IDENTITY,
array('customer' => $this, 'back_url' => $backUrl), $storeId, $bcc);

return $this;
}

1 REPLY

Re: In New Customer Welcome Email, set BCC

There are 2 ways to do it. Please follow the instruction here:

Set BCC for customer welcome email in Magento

[ Tigren - Elite Magento E-commerce Solutions Provider - www.tigren.com ]