--- pvpgn-1.7.4/utils/lib/send_mail.inc.php 2007/03/06 13:40:07 1.2 +++ pvpgn-1.7.4/utils/lib/send_mail.inc.php 2008/07/12 09:38:45 1.4 @@ -32,9 +32,9 @@ function send_mail_do($db_conn) { $recipients = $row["toemail"]; - $headers['From'] = "\"".$row["fromname"]."\" <".$row["fromemail"].">"; - $headers['To'] = "\"".$row["toname"]."\" <".$row["toemail"].">"; - $headers['Subject'] = $row["subject"]; + $headers['From'] = "\"=?GB2312?B?".base64_encode($row["fromname"])."?=\" <".$row["fromemail"].">"; + $headers['To'] = "\"=?GB2312?B?".base64_encode($row["toname"])."?=\" <".$row["toemail"].">"; + $headers['Subject'] = "=?GB2312?B?".base64_encode($row["subject"])."?="; $body = $row["body"]; @@ -87,7 +87,6 @@ function send_mail($from,$fromname,$to,$ "'$fromname','$to','$toname','$subject','$body',now())",$db_conn) or die("Add mail failed!"); - send_mail_do($db_conn); return; }