| @@ 1382-1384 (lines=3) @@ | ||
| 1379 | } |
|
| 1380 | if ($this->SingleTo) { |
|
| 1381 | foreach ($this->SingleToArray as $toAddr) { |
|
| 1382 | if (!@$mail = popen($sendmail, 'w')) { |
|
| 1383 | throw new phpmailerException($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL); |
|
| 1384 | } |
|
| 1385 | fputs($mail, 'To: ' . $toAddr . "\n"); |
|
| 1386 | fputs($mail, $header); |
|
| 1387 | fputs($mail, $body); |
|
| @@ 1403-1405 (lines=3) @@ | ||
| 1400 | } |
|
| 1401 | } |
|
| 1402 | } else { |
|
| 1403 | if (!@$mail = popen($sendmail, 'w')) { |
|
| 1404 | throw new phpmailerException($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL); |
|
| 1405 | } |
|
| 1406 | fputs($mail, $header); |
|
| 1407 | fputs($mail, $body); |
|
| 1408 | $result = pclose($mail); |
|