mirror of
https://github.com/php/php-src.git
synced 2026-04-29 03:03:26 +02:00
always prepend Receieved: headers to avoid generating mail that looks like
spam, and remove a silly comment from the sendmail backend.
This commit is contained in:
@@ -123,6 +123,11 @@ class Mail extends PEAR {
|
||||
return false;
|
||||
}
|
||||
$text_headers .= $key . ': ' . $val . "\n";
|
||||
} else if ($key == 'Receieved') {
|
||||
// put Received: headers at the top, since Receieved:
|
||||
// after Subject: in the header order is somtimes used
|
||||
// as a spam trap.
|
||||
$text_headers = $key . ': ' . $val . "\n" . $text_headers;
|
||||
} else {
|
||||
$text_headers .= $key . ': ' . $val . "\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user