tbrehm
2012-04-13 516e0e8ce0a998f95bd07e5bab812d979a5ea802
interface/lib/classes/functions.inc.php
@@ -45,6 +45,7 @@
         $content = file_get_contents($filepath);
         $content = chunk_split(base64_encode($content));
         $uid = strtoupper(md5(uniqid(time())));
         $subject      = "=?utf-8?B?".base64_encode($subject)."?=";
         
         if($filename == '') {
            $path_parts = pathinfo($filepath);
@@ -52,12 +53,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 +74,9 @@
         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";
         $subject      = "=?utf-8?B?".base64_encode($subject)."?=";
         mail($to, $subject, $text, $header);
      }