| @@ 107-119 (lines=13) @@ | ||
| 104 | * |
|
| 105 | * @return object instantiated $this |
|
| 106 | */ |
|
| 107 | public function addCC($address, $title = '') |
|
| 108 | { |
|
| 109 | if (!isset($this->headers['CC'])) { |
|
| 110 | $this->headers['CC'] = array(); |
|
| 111 | } |
|
| 112 | ||
| 113 | array_push( |
|
| 114 | $this->headers['CC'], |
|
| 115 | $this->formatEmailAddress($address, $title) |
|
| 116 | ); |
|
| 117 | ||
| 118 | return $this; |
|
| 119 | } |
|
| 120 | ||
| 121 | /** |
|
| 122 | * Setter method for adding bcc recipients |
|
| @@ 129-141 (lines=13) @@ | ||
| 126 | * |
|
| 127 | * @return object instantiated $this |
|
| 128 | */ |
|
| 129 | public function addBCC($address, $title = '') |
|
| 130 | { |
|
| 131 | if (!isset($this->headers['BCC'])) { |
|
| 132 | $this->headers['BCC'] = array(); |
|
| 133 | } |
|
| 134 | ||
| 135 | array_push( |
|
| 136 | $this->headers['BCC'], |
|
| 137 | $this->formatEmailAddress($address, $title) |
|
| 138 | ); |
|
| 139 | ||
| 140 | return $this; |
|
| 141 | } |
|
| 142 | ||
| 143 | /** |
|
| 144 | * Setter method for setting the single 'from' field |
|