From 7956b4f02ffa096750c1ca3add7676a54a6b12db Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 18 Mar 2013 13:52:53 +0900 Subject: [PATCH] =?UTF-8?q?gmail=EB=A1=9C=20=EB=A9=94=EC=9D=BC=20=EB=B0=9C?= =?UTF-8?q?=EC=86=A1=EC=8B=9C=20=EC=A0=9C=EB=AA=A9=20=EA=B9=A8=EC=A7=80?= =?UTF-8?q?=EB=8A=94=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/mailer.lib.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/mailer.lib.php b/lib/mailer.lib.php index d6f58c05f..f816a3d7d 100644 --- a/lib/mailer.lib.php +++ b/lib/mailer.lib.php @@ -11,8 +11,10 @@ function mailer($fname, $fmail, $to, $subject, $content, $type=0, $file='', $cc= // 메일발송 사용을 하지 않는다면 if (!$config['cf_email_use']) return; - $fname = "=?$g4[charset]?B?" . base64_encode($fname) . "?="; - $subject = "=?$g4[charset]?B?" . base64_encode($subject) . "?="; + //$fname = "=?$g4[charset]?B?" . base64_encode($fname) . "?="; + //$subject = "=?$g4[charset]?B?" . base64_encode($subject) . "?="; + $fname = "=?utf-8?B?" . base64_encode($fname) . "?="; + $subject = "=?utf-8?B?" . base64_encode($subject) . "?="; //$g4[charset] = ($g4[charset] != "") ? "charset=$g4[charset]" : ""; $header = "Return-Path: <$fmail>\n"; @@ -31,11 +33,11 @@ function mailer($fname, $fmail, $to, $subject, $content, $type=0, $file='', $cc= } if ($type) { - $header .= "Content-Type: TEXT/HTML; charset=$g4[charset]\n"; + $header .= "Content-Type: TEXT/HTML; charset=utf-8\n"; if ($type == 2) $content = nl2br($content); } else { - $header .= "Content-Type: TEXT/PLAIN; charset=$g4[charset]\n"; + $header .= "Content-Type: TEXT/PLAIN; charset=utf-8\n"; $content = stripslashes($content); } $header .= "Content-Transfer-Encoding: BASE64\n\n";