| @@ 220-226 (lines=7) @@ | ||
| 217 | if ($this->Sender != '' && strlen(ini_get('safe_mode')) < 1) { |
|
| 218 | $old_from = ini_get('sendmail_from'); |
|
| 219 | ini_set('sendmail_from', $this->Sender); |
|
| 220 | if ($this->SingleTo === true && count($toArr) > 1) { |
|
| 221 | foreach ($toArr as $key => $val) { |
|
| 222 | $rt = @mail($val, $this->Subject, $body, $header, $params); |
|
| 223 | } |
|
| 224 | } else { |
|
| 225 | $rt = @mail($to, $this->Subject, $body, $header, $params); |
|
| 226 | } |
|
| 227 | } else { |
|
| 228 | if ($this->SingleTo === true && count($toArr) > 1) { |
|
| 229 | foreach ($toArr as $key => $val) { |
|
| @@ 227-235 (lines=9) @@ | ||
| 224 | } else { |
|
| 225 | $rt = @mail($to, $this->Subject, $body, $header, $params); |
|
| 226 | } |
|
| 227 | } else { |
|
| 228 | if ($this->SingleTo === true && count($toArr) > 1) { |
|
| 229 | foreach ($toArr as $key => $val) { |
|
| 230 | $rt = @mail($val, $this->Subject, $body, $header, $params); |
|
| 231 | } |
|
| 232 | } else { |
|
| 233 | $rt = @mail($to, $this->Subject, $body, $header); |
|
| 234 | } |
|
| 235 | } |
|
| 236 | ||
| 237 | if (isset($old_from)) { |
|
| 238 | ini_set('sendmail_from', $old_from); |
|