MDL-30575 more mail header cleanup
This commit is contained in:
committed by
Aparup Banerjee
parent
6ec9004b69
commit
694bf2fa3b
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user