| @@ 240-251 (lines=12) @@ | ||
| 237 | * Set the list of recipients in the To: header |
|
| 238 | * @param mixed An array or a string |
|
| 239 | */ |
|
| 240 | public function setTo($to) |
|
| 241 | { |
|
| 242 | if ($to) |
|
| 243 | { |
|
| 244 | if (!is_array($to)) $to = array($to); |
|
| 245 | foreach ($to as $key => $value) |
|
| 246 | { |
|
| 247 | if ($value instanceof Swift_Address) $to[$key] = $value->build(); |
|
| 248 | } |
|
| 249 | } |
|
| 250 | $this->headers->set("To", $to); |
|
| 251 | } |
|
| 252 | /** |
|
| 253 | * Return the list of recipients in the To: header |
|
| 254 | * @return array |
|
| @@ 269-280 (lines=12) @@ | ||
| 266 | * Set the list of recipients in the Reply-To: header |
|
| 267 | * @param mixed An array or a string |
|
| 268 | */ |
|
| 269 | public function setReplyTo($replyto) |
|
| 270 | { |
|
| 271 | if ($replyto) |
|
| 272 | { |
|
| 273 | if (!is_array($replyto)) $replyto = array($replyto); |
|
| 274 | foreach ($replyto as $key => $value) |
|
| 275 | { |
|
| 276 | if ($value instanceof Swift_Address) $replyto[$key] = $value->build(); |
|
| 277 | } |
|
| 278 | } |
|
| 279 | $this->headers->set("Reply-To", $replyto); |
|
| 280 | } |
|
| 281 | /** |
|
| 282 | * Return the list of recipients in the Reply-To: header |
|
| 283 | * @return array |
|
| @@ 298-309 (lines=12) @@ | ||
| 295 | * Set the list of recipients in the Cc: header |
|
| 296 | * @param mixed An array or a string |
|
| 297 | */ |
|
| 298 | public function setCc($cc) |
|
| 299 | { |
|
| 300 | if ($cc) |
|
| 301 | { |
|
| 302 | if (!is_array($cc)) $cc = array($cc); |
|
| 303 | foreach ($cc as $key => $value) |
|
| 304 | { |
|
| 305 | if ($value instanceof Swift_Address) $cc[$key] = $value->build(); |
|
| 306 | } |
|
| 307 | } |
|
| 308 | $this->headers->set("Cc", $cc); |
|
| 309 | } |
|
| 310 | /** |
|
| 311 | * Return the list of recipients in the Cc: header |
|
| 312 | * @return array |
|
| @@ 327-338 (lines=12) @@ | ||
| 324 | * Set the list of recipients in the Bcc: header |
|
| 325 | * @param mixed An array or a string |
|
| 326 | */ |
|
| 327 | public function setBcc($bcc) |
|
| 328 | { |
|
| 329 | if ($bcc) |
|
| 330 | { |
|
| 331 | if (!is_array($bcc)) $bcc = array($bcc); |
|
| 332 | foreach ($bcc as $key => $value) |
|
| 333 | { |
|
| 334 | if ($value instanceof Swift_Address) $bcc[$key] = $value->build(); |
|
| 335 | } |
|
| 336 | } |
|
| 337 | $this->headers->set("Bcc", $bcc); |
|
| 338 | } |
|
| 339 | /** |
|
| 340 | * Return the list of recipients in the Bcc: header |
|
| 341 | * @return array |
|