MDL-30575 more mail header cleanup

This commit is contained in:
Petr Skoda
2011-12-13 10:24:56 +08:00
committed by Aparup Banerjee
parent 6ec9004b69
commit 694bf2fa3b
+2 -2
View File
@@ -1080,9 +1080,9 @@ class PHPMailer {
$result .= $this->HeaderLine('Date', self::RFCDate());
if($this->Sender == '') {
$result .= $this->HeaderLine('Return-Path', trim($this->From));
$result .= $this->HeaderLine('Return-Path', trim($this->SecureHeader($this->From))); // Moodle modification
} else {
$result .= $this->HeaderLine('Return-Path', trim($this->Sender));
$result .= $this->HeaderLine('Return-Path', trim($this->SecureHeader($this->Sender))); // Moodle modification
}
// To be created automatically by mail()