最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
使用php的编码功能-实例调用(3)
时间:2022-07-02 10:35:14 编辑:袖梨 来源:一聚教程网
include_once("mime.inc");
$mm = new MIME();
$to = "[email protected]";
$subject = $mm->encode("商城","gb2312"); // 编码
$msg = "注册会员成功
";
$msg .= "会员名:wayne
";
$msg .= "密码:wayne";
$headers = "From: [email protected] Content-Type: text/html; charset=gb2312 ";
mail("$to", "$subject", "$msg", "$headers");
?>
进行编码以后,中文问题解决。
$mm = new MIME();
$to = "[email protected]";
$subject = $mm->encode("商城","gb2312"); // 编码
$msg = "注册会员成功
";
$msg .= "会员名:wayne
";
$msg .= "密码:wayne";
$headers = "From: [email protected] Content-Type: text/html; charset=gb2312 ";
mail("$to", "$subject", "$msg", "$headers");
?>
进行编码以后,中文问题解决。
相关文章
- 《微笑 镜头之下》怎么揭示这一扭曲恐怖宇宙的新面貌 08-10
- 一篇文章教你学会用Java操作文件(JavaFile) 08-10
- WhatsApp官网链接入口及下载地址分享 08-10
- Switch 2假期档竟然没卖爆 缺少大作成关键短板 08-10
- 哔哩哔哩漫画网页版直达-哔哩哔哩漫画网页版在线阅读热榜 08-10
- 歪歪漫画--韩漫首页入口 08-10