Add info to help spam fight
This commit is contained in:
parent
9bdd31e05a
commit
2b95679b84
@ -957,6 +957,7 @@ class CMailFile
|
||||
$out.= 'Message-ID: <' . time() . '.phpmail@' . $host . ">" . $this->eol2;
|
||||
}
|
||||
|
||||
if (! empty($_SERVER['REMOTE_ADDR'])) $out.= "X-RemoteAddr: " . $_SERVER['REMOTE_ADDR']. $this->eol2;
|
||||
$out.= "X-Mailer: Dolibarr version " . DOL_VERSION ." (using php mail)".$this->eol2;
|
||||
$out.= "Mime-Version: 1.0".$this->eol2;
|
||||
|
||||
|
||||
@ -1283,6 +1283,7 @@ class SMTPs
|
||||
{
|
||||
$_header .= 'Message-ID: <' . time() . '.SMTPs@' . $host . ">\r\n";
|
||||
}
|
||||
if (! empty($_SERVER['REMOTE_ADDR'])) $_header .= "X-RemoteAddr: " . $_SERVER['REMOTE_ADDR']. "\r\n";
|
||||
if ( $this->getMoreInHeader() )
|
||||
$_header .= $this->getMoreInHeader(); // Value must include the "\r\n";
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user