From c53695f5ac6ec973a8e8b4af914f629b2c40f465 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 15 Dec 2011 10:08:42 -0500
Subject: [PATCH] - Fixed some php notices. - Added error_reporting level in app.inc.php to E_ALL & ~E_NOTICE

---
 interface/lib/classes/functions.inc.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/interface/lib/classes/functions.inc.php b/interface/lib/classes/functions.inc.php
index 8071429..3e926ae 100644
--- a/interface/lib/classes/functions.inc.php
+++ b/interface/lib/classes/functions.inc.php
@@ -52,7 +52,7 @@
 				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";
 
@@ -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