| @@ 1292-1294 (lines=3) @@ | ||
| 1289 | } |
|
| 1290 | if ($this->SingleTo) { |
|
| 1291 | foreach ($this->SingleToArray as $toAddr) { |
|
| 1292 | if (!@$mail = popen($sendmail, 'w')) { |
|
| 1293 | throw new phpmailerException($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL); |
|
| 1294 | } |
|
| 1295 | fputs($mail, 'To: ' . $toAddr . "\n"); |
|
| 1296 | fputs($mail, $header); |
|
| 1297 | fputs($mail, $body); |
|
| @@ 1313-1315 (lines=3) @@ | ||
| 1310 | } |
|
| 1311 | } |
|
| 1312 | } else { |
|
| 1313 | if (!@$mail = popen($sendmail, 'w')) { |
|
| 1314 | throw new phpmailerException($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL); |
|
| 1315 | } |
|
| 1316 | fputs($mail, $header); |
|
| 1317 | fputs($mail, $body); |
|
| 1318 | $result = pclose($mail); |
|