我知道有很多关于这方面的文档,但是这一行代码花了我很长时间才在一个 4000 行的文件中找到,我希望第一次尝试就正确。
file_put_contents($myFile,serialize(array($email_number,$email_address))) or die("can't open file");
if ($address != "email@domain.com") {
$email['headers'] = array('CC' => 'email@domain.com');
}
}
在此 if 语句之后,我基本上想添加
'BCC' => 'another_email@domain.com'
到$email['headers']
数组中(因此无论 if 评估为真与否,它都会添加它)