@@ 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)); |
|
@@ 1218-1226 (lines=9) @@ | ||
1215 | continue; |
|
1216 | } |
|
1217 | $this->$address_kind = $this->punyencodeAddress($this->$address_kind); |
|
1218 | if (!$this->validateAddress($this->$address_kind)) { |
|
1219 | $error_message = $this->lang('invalid_address') . $this->$address_kind; |
|
1220 | $this->setError($error_message); |
|
1221 | $this->edebug($error_message); |
|
1222 | if ($this->exceptions) { |
|
1223 | throw new phpmailerException($error_message); |
|
1224 | } |
|
1225 | return false; |
|
1226 | } |
|
1227 | } |
|
1228 | ||
1229 | // Set whether the message is multipart/alternative |