From 2a69df52d2455a21eb738a602c94ca9bee3be1d0 Mon Sep 17 00:00:00 2001 From: Brian Beard Date: Wed, 29 May 2013 08:26:27 -0500 Subject: [PATCH] Add missing CC and BCC --- libraries/phpmailer_email.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/libraries/phpmailer_email.php b/libraries/phpmailer_email.php index a001e61..1653820 100644 --- a/libraries/phpmailer_email.php +++ b/libraries/phpmailer_email.php @@ -194,7 +194,17 @@ function send() $this->_phpm->addAddress($to); } - // cc/bcc + // cc + foreach($this->_recipients['cc'] as $cc) + { + $this->_phpm->addCC($cc); + } + + // bcc + foreach($this->_recipients['bcc'] as $bcc) + { + $this->_phpm->addBCC($bcc); + } // Content $this->_phpm->Body = $this->_message['body_html'];