Skip to content

Commit

Permalink
Fix for PHPMailer#201
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Mar 31, 2014
1 parent 00af38d commit f990ae3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions class.phpmailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1625,17 +1625,19 @@ public function createHeader()
}

// To be created automatically by mail()
if ($this->Mailer != 'mail') {
if ($this->SingleTo === true) {
if ($this->SingleTo === true) {
if ($this->Mailer != 'mail') {
foreach ($this->to as $t) {
$this->SingleToArray[] = $this->addrFormat($t);
}
} else {
if (count($this->to) > 0) {
}
} else {
if (count($this->to) > 0) {
if ($this->Mailer != 'mail') {
$result .= $this->addrAppend('To', $this->to);
} elseif (count($this->cc) == 0) {
$result .= $this->headerLine('To', 'undisclosed-recipients:;');
}
} elseif (count($this->cc) == 0) {
$result .= $this->headerLine('To', 'undisclosed-recipients:;');
}
}

Expand Down

0 comments on commit f990ae3

Please sign in to comment.