请尝试添加 的 UTF-8 强> 例如,charset标题到您的邮件功能
$headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headers .= 'From: <example@example.com>' . "\r\n"; $headers .= 'Cc: example@example.com' . "\r\n"; mail ( "blahblah@blah.com", "VGKD Bindings Submission", "NAME:\t\t" . $name . "\n" . "EMAIL:\t\t" . $email . "\n" . "MESSAGE:\t" . $message . "\n" . "GAME TITLE:\t" . $titletxt . "\n" . "GAME URL:\t" . $titleurl . "\n" . "LAYOUT:\t\t" . $layout . "\n\n" . "LEGENDS:\n" . $legend . "\n\n" . "COMMANDS:\n" . $command . "\n\n" . "BINDINGS:\n" . $binding . "\n\n", $headers );
该 header() 函数将原始HTTP标头发送到客户端浏览器,但是 mail 函数与变量 $headers 将标题发送到电子邮件
header()
mail
$headers