@@ 832-839 (lines=8) @@ | ||
829 | } |
|
830 | $address = trim($address); |
|
831 | $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim |
|
832 | if (!$this->validateAddress($address)) { |
|
833 | $this->setError($this->lang('invalid_address') . ': ' . $address); |
|
834 | $this->edebug($this->lang('invalid_address') . ': ' . $address); |
|
835 | if ($this->exceptions) { |
|
836 | throw new phpmailerException($this->lang('invalid_address') . ': ' . $address); |
|
837 | } |
|
838 | return false; |
|
839 | } |
|
840 | if ($kind != 'Reply-To') { |
|
841 | if (!isset($this->all_recipients[strtolower($address)])) { |
|
842 | array_push($this->$kind, array($address, $name)); |
|
@@ 922-929 (lines=8) @@ | ||
919 | { |
|
920 | $address = trim($address); |
|
921 | $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim |
|
922 | if (!$this->validateAddress($address)) { |
|
923 | $this->setError($this->lang('invalid_address') . ': ' . $address); |
|
924 | $this->edebug($this->lang('invalid_address') . ': ' . $address); |
|
925 | if ($this->exceptions) { |
|
926 | throw new phpmailerException($this->lang('invalid_address') . ': ' . $address); |
|
927 | } |
|
928 | return false; |
|
929 | } |
|
930 | $this->From = $address; |
|
931 | $this->FromName = $name; |
|
932 | if ($auto) { |