如何在Prestashop中发送所有电子邮件?

时间:2014-07-05 07:50:06

标签: php prestashop-1.5 bcc

我试图在名为Mail.php的override / classes中创建一个文件,并使用下面的代码。我正在尝试将从系统发送的所有电子邮件发送给我 - 我基本上想看看电子邮件是否传出,因为有些客户抱怨他们没有收到我们的电子邮件。

我们正在使用Prestashop 1.5.0和SMTP电子邮件。我尝试将modesmtp从null更改为true,但它既不起作用。

我正在按照自己的订单对此进行测试,并希望收到两次电子邮件 - 正常邮件和bcced邮件。我只得到那个。

 <?php
class Mail extends MailCore
{
public static function Send($id_lang, $template, $subject, $template_vars, $to,
$to_name = null, $from = null, $from_name = null, $file_attachment = null, $mode_smtp = null, $template_path = _PS_MAIL_DIR_, $die = false, $id_shop = null)
{
// send to customer
$ret = parent::Send($id_lang, $template, $subject, $template_vars, $to, $to_name, $from, $from_name, $file_attachment, $mode_smtp, $template_path, $die, $id_shop);

// send to shop owner
parent::Send($id_lang, $template, $subject, $template_vars, "my@email.com -  I really put MY email here no worries", $to_name, $from, $from_name, $file_attachment, $mode_smtp, $template_path, $die, $id_shop);

return $ret;
}
}

?>

0 个答案:

没有答案
相关问题