我到处搜寻。我不是很专业,而且真的在这方面苦苦挣扎。Cron mailer,没有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']);发布于 2012-11-20 10:13:04
将BCC包含到EmailQueue变量的头变量中。
您必须将您的代码修改为
$this->EmailQueue->headers = array(
'booking_token' => $booking['Booking']['token'],
'bcc' => 'email@tobebcced.com'
);https://stackoverflow.com/questions/13469878
复制相似问题