Add X-Mailer header

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1140 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2009-09-24 11:05:34 +00:00
parent 3bbf9a863e
commit 58b6221f5b

View file

@ -321,7 +321,7 @@ ORDER BY ORDINAL_POSITION"); //! requires MySQL 5
$beginning = "--$boundary$eol$headers$eol$eol";
$headers = "Content-Type: multipart/mixed; boundary=\"$boundary\"";
}
$headers .= $eol . "MIME-Version: 1.0"
$headers .= $eol . "MIME-Version: 1.0$eol" . "X-Mailer: Adminer Editor"
. ($_POST["email_from"] ? $eol . "From: " . str_replace("\n", "", $_POST["email_from"]) : "") //! should escape display name
;
foreach ($this->rowDescriptions($rows, $foreignKeys) as $row) {