1
0
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:
Chuck Hagenbuch
2000-11-02 20:20:39 +00:00
parent 2986b89e1d
commit e6b6213619
+5
View File
@@ -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";
}