我不知道如何在以下编码中添加cc或bcc ..我试过bcc但邮件不能去.请帮忙!..
代码是
$data = array('name' => $username, 'to_user_id' => $to_userid, 'email' => $email, 'telephone' => $telephone, 'title' => $title, 'ip' => $ip, 'message' => $message);
$templateId =1;
$sender = Array('name' => "Admin", 'email' => "webmaster@example.com");
$useremail = $product_user;
$emailName = $username;
$vars = array('username' => $username, 'telephone' => $telephone, 'mail_id' => $email, 'title' => $title, 'message' => $message, 'object' => $this);
$storeId = Mage::app()->getStore()->getId();
$mailSubject = 'mail check';
$translate = Mage::getSingleton('core/translate');
$translate->setTranslateInline(false);
Mage::getModel('core/email_template')
->setDesignConfig(array('area' => 'frontend', 'store' => $storeId)) …
Run Code Online (Sandbox Code Playgroud) magento ×1