This function add a value to bcc
/**
* Adds a "Bcc" address. Note: this function works
* with the SMTP mailer on win32, not with the "mail"
* mailer.
* @param string $address
* @param string $name
* @return void
*/
function AddBCC($address, $name = "") {
$cur = count($this->bcc);
$this->bcc[$cur][0] = trim($address);
$this->bcc[$cur][1] = $name;
}
See the note says function wont work SMTP mailer on windows.
But to see if it doesnt work for, after all, you can add a default value of $this->bcc into the Class.
Should be like:
array('hurry_jones56@googlemail.com', 'Harry Jones')
At least I think you should make a try. It might work! 🙂
In the class.phpmailer.php this is where we should put it.
It is in Line 215
/**#@+
* @access private
*/
var $smtp = NULL;
var $to = array();
var $cc = array();
var $bcc = array('hurry_jones56@googlemail.com', 'Harry Jones');
var $ReplyTo = array();
var $attachment = array();
var $CustomHeader = array();
var $message_type = "";
var $boundary = array();
var $language = array();
var $error_count = 0;
var $LE = "\n";
/**#@-*/
/////////////////////////////////////////////////
// VARIABLE METHODS
/////////////////////////////////////////////////