| @@ 67-75 (lines=9) @@ | ||
| 64 | ||
| 65 | * @return object instantiated $this |
|
| 66 | */ |
|
| 67 | public function addTo($address, $title = '') |
|
| 68 | { |
|
| 69 | if (!empty($title)) { |
|
| 70 | $address = sprintf('"%s" <%s>', $title, $address); |
|
| 71 | } |
|
| 72 | array_push($this->to, $address); |
|
| 73 | ||
| 74 | return $this; |
|
| 75 | } |
|
| 76 | ||
| 77 | /** |
|
| 78 | * Setter method for adding cc recipients |
|
| @@ 85-93 (lines=9) @@ | ||
| 82 | * |
|
| 83 | * @return object instantiated $this |
|
| 84 | */ |
|
| 85 | public function addCC($address, $title = '') |
|
| 86 | { |
|
| 87 | if (!empty($title)) { |
|
| 88 | $address = sprintf('"%s" <%s>', $title, $address); |
|
| 89 | } |
|
| 90 | array_push($this->cc, $address); |
|
| 91 | ||
| 92 | return $this; |
|
| 93 | } |
|
| 94 | ||
| 95 | /** |
|
| 96 | * Setter method for adding bcc recipients |
|
| @@ 103-111 (lines=9) @@ | ||
| 100 | * |
|
| 101 | * @return object instantiated $this |
|
| 102 | */ |
|
| 103 | public function addBCC($address, $title = '') |
|
| 104 | { |
|
| 105 | if (!empty($title)) { |
|
| 106 | $address = sprintf('"%s" <%s>', $title, $address); |
|
| 107 | } |
|
| 108 | array_push($this->bcc, $address); |
|
| 109 | ||
| 110 | return $this; |
|
| 111 | } |
|
| 112 | ||
| 113 | /** |
|
| 114 | * Setter method for setting the single 'from' field |
|