--- pvpgn-1.7.4/utils/lib/send_mail.inc.php 2006/06/24 09:23:47 1.1 +++ pvpgn-1.7.4/utils/lib/send_mail.inc.php 2007/03/06 14:32:58 1.3 @@ -13,6 +13,7 @@ function send_mail_do($db_conn) break; case "smtp": $params['host'] = $Mail_Server; + $params['port'] = $Mail_Server_Port; $params['auth'] = true; $params['username'] = $Mail_User; $params['password'] = $Mail_Pass; @@ -31,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"];