diff --git a/classes/email/driver.php b/classes/email/driver.php index fd836a1..2015402 100644 --- a/classes/email/driver.php +++ b/classes/email/driver.php @@ -651,9 +651,9 @@ public function send($validate = null) foreach (array('cc' => 'Cc', 'bcc' => 'Bcc', 'reply_to' => 'Reply-To') as $list => $header) { - if (count($this->cc) > 0) + if (count($this->{$list}) > 0) { - $this->set_header('Cc', static::format_addresses($this->cc)); + $this->set_header($header, static::format_addresses($this->{$list})); } }