From a7cb2b0250c17405cd52649be7aa5ed463e7078d Mon Sep 17 00:00:00 2001 From: nveid <nveid@ispconfig3> Date: Sat, 17 Dec 2011 15:52:35 -0500 Subject: [PATCH] Reversed the logic one place in the mysql client plugin --- interface/lib/classes/functions.inc.php | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/interface/lib/classes/functions.inc.php b/interface/lib/classes/functions.inc.php index 1839676..3e926ae 100644 --- a/interface/lib/classes/functions.inc.php +++ b/interface/lib/classes/functions.inc.php @@ -52,12 +52,12 @@ unset($path_parts); } - $header = "From: $from\nReply-To: $from\n"; + $header = "Return-Path: $form\nFrom: $from\nReply-To: $from\n"; $header .= "MIME-Version: 1.0\n"; $header .= "Content-Type: multipart/mixed; boundary=$uid\n"; $header .= "--$uid\n"; - $header .= "Content-Type: text/plain\n"; + $header .= "Content-Type: text/plain;\n\tcharset=\"UTF-8\"\n"; $header .= "Content-Transfer-Encoding: 8bit\n\n"; $header .= "$text\n"; @@ -73,6 +73,8 @@ mail($to, $subject, "", $header); } else { $header = "From: $from\nReply-To: $from\n"; + $header .= "Content-Type: text/plain;\n\tcharset=\"UTF-8\"\n"; + $header .= "Content-Transfer-Encoding: 8bit\n\n"; mail($to, $subject, $text, $header); } -- Gitblit v1.9.1