|
@@ 841-849 (lines=9) @@
|
| 838 |
|
} |
| 839 |
|
$address = trim($address); |
| 840 |
|
$name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim |
| 841 |
|
if (!$this->validateAddress($address)) { |
| 842 |
|
$this->setError($this->lang('invalid_address').': '.$address); |
| 843 |
|
if ($this->exceptions) { |
| 844 |
|
throw new phpmailerException($this->lang('invalid_address').': '.$address); |
| 845 |
|
} |
| 846 |
|
$this->edebug($this->lang('invalid_address').': '.$address); |
| 847 |
|
|
| 848 |
|
return false; |
| 849 |
|
} |
| 850 |
|
if ($kind != 'Reply-To') { |
| 851 |
|
if (!isset($this->all_recipients[strtolower($address)])) { |
| 852 |
|
array_push($this->$kind, [$address, $name]); |
|
@@ 883-891 (lines=9) @@
|
| 880 |
|
{ |
| 881 |
|
$address = trim($address); |
| 882 |
|
$name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim |
| 883 |
|
if (!$this->validateAddress($address)) { |
| 884 |
|
$this->setError($this->lang('invalid_address').': '.$address); |
| 885 |
|
if ($this->exceptions) { |
| 886 |
|
throw new phpmailerException($this->lang('invalid_address').': '.$address); |
| 887 |
|
} |
| 888 |
|
$this->edebug($this->lang('invalid_address').': '.$address); |
| 889 |
|
|
| 890 |
|
return false; |
| 891 |
|
} |
| 892 |
|
$this->From = $address; |
| 893 |
|
$this->FromName = $name; |
| 894 |
|
if ($auto) { |