Add <> brackets around Return-Path, fixes #37

This commit is contained in:
Synchro 2013-04-04 16:51:46 +02:00
parent 1ebcb2fd78
commit e47762ffca
1 changed files with 3 additions and 3 deletions

View File

@ -1384,11 +1384,11 @@ class PHPMailer {
}
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()