我搜索了高低。我不是很技术,真的很努力。Cron 邮件程序,没有关于 CC 和 BCC 的详细信息。我尝试了代码变体,将硬编码的密件抄送添加到外发电子邮件中。有人建议使用数组,但无法正常工作。我相信这很简单,但任何帮助将不胜感激。我无法进行的行已被注释掉。
代码
$this->EmailQueue->to = $booking['Guest']['email'];
//$this->EmailQueue->bcc = 'james@domain.com';
$this->EmailQueue->from = $email;
$this->EmailQueue->headers = array(
'booking_token' => $booking['Booking']['token'],
);
$this->EmailQueue->additionalParams = '-f ' . $bounce_options['bounce_email'];
$this->EmailQueue->return = $bounce_options['bounce_email'];
$this->EmailQueue->subject = $template['EmailTemplate']['subject'];
$this->EmailQueue->template = 'mailman_invitation';
$this->EmailQueue->sendAs = 'both';
$this->EmailQueue->delivery = 'db';
$this->set('body', $template['EmailTemplate']['html']);