I know there is a lot of documentation around this but this one line of code took me ages to find in a 4000 line file, and I would like to get it right the first try.
file_put_contents($myFile,serialize(array($email_number,$email_address))) or die("can't open file");
if ($address != "[email protected]") {
$email['headers'] = array('CC' => '[email protected]');
}
}
After this if statement I basically want to add on
'BCC' => '[email protected]'
into the $email['headers']
array (so it adds it whether the if evaluates to true or not)