Skip to content
Snippets Groups Projects
Commit 7d72b6c3 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Add comments

parent 442e15e9
No related branches found
No related tags found
No related merge requests found
...@@ -657,6 +657,7 @@ class CMailFile ...@@ -657,6 +657,7 @@ class CMailFile
{ {
$out.= "To: ".$this->getValidAddress($this->addr_to,0,1).$this->eol2; $out.= "To: ".$this->getValidAddress($this->addr_to,0,1).$this->eol2;
} }
// Return-Path is important because it is used by SPF. Some MTA does not read Return-Path from header but from command line. See option MAIN_MAIL_ALLOW_SENDMAIL_F for that.
$out.= "Return-Path: ".$this->getValidAddress($this->addr_from,0,1).$this->eol2; $out.= "Return-Path: ".$this->getValidAddress($this->addr_from,0,1).$this->eol2;
if (isset($this->reply_to) && $this->reply_to) $out.= "Reply-To: ".$this->getValidAddress($this->reply_to,2).$this->eol2; if (isset($this->reply_to) && $this->reply_to) $out.= "Reply-To: ".$this->getValidAddress($this->reply_to,2).$this->eol2;
if (isset($this->errors_to) && $this->errors_to) $out.= "Errors-To: ".$this->getValidAddress($this->errors_to,2).$this->eol2; if (isset($this->errors_to) && $this->errors_to) $out.= "Errors-To: ".$this->getValidAddress($this->errors_to,2).$this->eol2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment