Skip to content

Commit

Permalink
Add <> brackets around Return-Path, fixes PHPMailer#37
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Apr 4, 2013
1 parent 1ebcb2f commit e47762f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions class.phpmailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1384,11 +1384,11 @@ public function CreateHeader() {
}

if ($this->ReturnPath) {
$result .= $this->HeaderLine('Return-Path', trim($this->ReturnPath));
$result .= $this->HeaderLine('Return-Path', '<'.trim($this->ReturnPath).'>');
} elseif ($this->Sender == '') {
$result .= $this->HeaderLine('Return-Path', trim($this->From));
$result .= $this->HeaderLine('Return-Path', '<'.trim($this->From).'>');
} else {
$result .= $this->HeaderLine('Return-Path', trim($this->Sender));
$result .= $this->HeaderLine('Return-Path', '<'.trim($this->Sender).'>');
}

// To be created automatically by mail()
Expand Down

0 comments on commit e47762f

Please sign in to comment.