| @@ 73-82 (lines=10) @@ | ||
| 70 | try { |
|
| 71 | // Encode recipient names (but not any numeric array indexes) |
|
| 72 | $recipients = array(); |
|
| 73 | foreach ($this->_recipients as $name => $email) { |
|
| 74 | // Support Bcc header |
|
| 75 | if (isset($this->_header_fields['Bcc']) && $this->_header_fields['Bcc'] === $email) { |
|
| 76 | continue; |
|
| 77 | } |
|
| 78 | ||
| 79 | // if the key is not numeric, qEncode the key. |
|
| 80 | $name = General::intval($name) > -1 ? General::intval($name) : EmailHelper::qEncode($name); |
|
| 81 | $recipients[$name] = $email; |
|
| 82 | } |
|
| 83 | ||
| 84 | // Combine keys and values into a recipient list (name <email>, name <email>). |
|
| 85 | $recipient_list = EmailHelper::arrayToList($recipients); |
|
| @@ 206-215 (lines=10) @@ | ||
| 203 | ||
| 204 | // Encode recipient names (but not any numeric array indexes) |
|
| 205 | $recipients = array(); |
|
| 206 | foreach ($this->_recipients as $name => $email) { |
|
| 207 | // Support Bcc header |
|
| 208 | if (isset($this->_header_fields['Bcc']) && $this->_header_fields['Bcc'] === $email) { |
|
| 209 | continue; |
|
| 210 | } |
|
| 211 | ||
| 212 | // if the key is not numeric, qEncode the key. |
|
| 213 | $name = General::intval($name) > -1 ? General::intval($name) : EmailHelper::qEncode($name); |
|
| 214 | $recipients[$name] = $email; |
|
| 215 | } |
|
| 216 | ||
| 217 | // Combine keys and values into a recipient list (name <email>, name <email>). |
|
| 218 | $recipient_list = EmailHelper::arrayToList($recipients); |
|