#11098 - added patch that enables CC and BCC in t3lib_htmlmail
authorChristian Jul Jensen <christian.jensen@typo3.org>
Fri, 15 May 2009 21:36:08 +0000 (21:36 +0000)
committerChristian Jul Jensen <christian.jensen@typo3.org>
Fri, 15 May 2009 21:36:08 +0000 (21:36 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5419 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_htmlmail.php

index f6335c4..e791841 100644 (file)
@@ -184,6 +184,7 @@ class t3lib_htmlmail {
                // Headerinfo:
        var $recipient          = '';
        var $recipient_copy     = '';   // This recipient (or list of...) will also receive the mail. Regard it as a copy.
+       var $recipient_blindcopy = ''; // This recipient (or list of...) will also receive the mail as a blind copy. Regard it as a copy.
        var $subject            = '';
        var $from_email         = '';
        var $from_name          = '';
@@ -482,6 +483,17 @@ class t3lib_htmlmail {
                                $this->add_header('From: '.$this->from_email);
                        }
                }
+               
+                       // Cc
+               if ($this->recipient_copy) {
+                       $this->add_header('Cc: ' . $this->recipient_copy);
+               }
+               
+                       // Bcc
+               if ($this->recipient_blindcopy) {
+                       $this->add_header('Bcc: ' . $this->recipient_blindcopy);
+               }
+               
                        // Reply
                if ($this->replyto_email) {
                        if ($this->replyto_name) {