请如何设置向管理员复制电子邮件的状态(已完成订单,付款,..)?
答案 0 :(得分:0)
从类send()
覆盖函数Mail
。
设置$bcc
参数并调用父函数:
public static function send(
$idLang,
$template,
$subject,
$templateVars,
$to,
$toName = null,
$from = null,
$fromName = null,
$fileAttachment = null,
$mode_smtp = null,
$templatePath = _PS_MAIL_DIR_,
$die = false,
$idShop = null,
$bcc = null,
$replyTo = null,
$replyToName = null
) {
$bcc = 'your@mail.com';
parent:: send($idLang, $template, $subject, $templateVars, $to, $toName, $from, $fromName, $fileAttachment, $mode_smtp, $templatePath, $die, $idShop, $bcc, $replyTo, $replyToName);
}