JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
email(): explicit text/plain;charset=UTF-8
authorJason Woofenden <jason@jasonwoof.com>
Tue, 25 Sep 2012 12:44:54 +0000 (08:44 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Tue, 25 Sep 2012 12:44:54 +0000 (08:44 -0400)
email.php

index c7ae44f..1af8f92 100644 (file)
--- a/email.php
+++ b/email.php
@@ -53,9 +53,8 @@ function email($from, $to, $subject, $message, $reply_to = '', $cc = '', $bcc =
        if($bcc) {
                $headers .= "\r\nBCC: $bcc";
        }
-       #header('Content-Type: text/plain');
-       #print_r(array($to, $subject, $message, $headers));
-       #exit();
+       $headers .= "\r\nContent-type: text/plain; charset=UTF-8";
+
        if(mail($to, $subject, $message, $headers)) {
                return 0;
        } else {