| @@ 902-910 (lines=9) @@ | ||
| 899 | } |
|
| 900 | return false; |
|
| 901 | } |
|
| 902 | if (!$this->validateAddress($address)) { |
|
| 903 | $error_message = $this->lang('invalid_address') . $address; |
|
| 904 | $this->setError($error_message); |
|
| 905 | $this->edebug($error_message); |
|
| 906 | if ($this->exceptions) { |
|
| 907 | throw new phpmailerException($error_message); |
|
| 908 | } |
|
| 909 | return false; |
|
| 910 | } |
|
| 911 | if ($kind != 'Reply-To') { |
|
| 912 | if (!array_key_exists(strtolower($address), $this->all_recipients)) { |
|
| 913 | array_push($this->$kind, array($address, $name)); |
|
| @@ 1163-1171 (lines=9) @@ | ||
| 1160 | continue; |
|
| 1161 | } |
|
| 1162 | $this->$address_kind = $this->punyencodeAddress($this->$address_kind); |
|
| 1163 | if (!$this->validateAddress($this->$address_kind)) { |
|
| 1164 | $error_message = $this->lang('invalid_address') . $this->$address_kind; |
|
| 1165 | $this->setError($error_message); |
|
| 1166 | $this->edebug($error_message); |
|
| 1167 | if ($this->exceptions) { |
|
| 1168 | throw new phpmailerException($error_message); |
|
| 1169 | } |
|
| 1170 | return false; |
|
| 1171 | } |
|
| 1172 | } |
|
| 1173 | ||
| 1174 | // Set whether the message is multipart/alternative |
|