Skip to content

Commit

Permalink
Update class.phpmailer.php
Browse files Browse the repository at this point in the history
If MessageDate was not explicitely set before composing message, we get empty value if we need to retrieve date late (i.e. for debug or log purposes).
  • Loading branch information
SDKiller committed May 2, 2014
1 parent f7ca20f commit ad42b57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions class.phpmailer.php
Expand Up @@ -1636,10 +1636,10 @@ public function createHeader()
$this->boundary[3] = 'b3_' . $uniq_id;

if ($this->MessageDate == '') {
$result .= $this->headerLine('Date', self::rfcDate());
} else {
$result .= $this->headerLine('Date', $this->MessageDate);
$this->MessageDate = self::rfcDate();
}
$result .= $this->headerLine('Date', $this->MessageDate);


// To be created automatically by mail()
if ($this->SingleTo === true) {
Expand Down

0 comments on commit ad42b57

Please sign in to comment.