@@ 476-482 (lines=7) @@ | ||
473 | if ($this->Sender != '' && strlen(ini_get('safe_mode')) < 1) { |
|
474 | $old_from = ini_get('sendmail_from'); |
|
475 | ini_set('sendmail_from', $this->Sender); |
|
476 | if ($this->SingleTo === true && count($toArr) > 1) { |
|
477 | foreach ($toArr as $key => $val) { |
|
478 | $rt = @mail($val, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header, $params); |
|
479 | } |
|
480 | } else { |
|
481 | $rt = @mail($to, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header, $params); |
|
482 | } |
|
483 | } else { |
|
484 | if ($this->SingleTo === true && count($toArr) > 1) { |
|
485 | foreach ($toArr as $key => $val) { |
|
@@ 483-491 (lines=9) @@ | ||
480 | } else { |
|
481 | $rt = @mail($to, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header, $params); |
|
482 | } |
|
483 | } else { |
|
484 | if ($this->SingleTo === true && count($toArr) > 1) { |
|
485 | foreach ($toArr as $key => $val) { |
|
486 | $rt = @mail($val, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header, $params); |
|
487 | } |
|
488 | } else { |
|
489 | $rt = @mail($to, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header); |
|
490 | } |
|
491 | } |
|
492 | ||
493 | if (isset($old_from)) { |
|
494 | ini_set('sendmail_from', $old_from); |