最新下载
热门教程
- 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 = "customer@263.net";
$subject = $mm->encode("商城","gb2312"); // 编码
$msg = "注册会员成功
";
$msg .= "会员名:wayne
";
$msg .= "密码:wayne";
$headers = "From: webmaster@263.net Content-Type: text/html; charset=gb2312 ";
mail("$to", "$subject", "$msg", "$headers");
?>
进行编码以后,中文问题解决。
$mm = new MIME();
$to = "customer@263.net";
$subject = $mm->encode("商城","gb2312"); // 编码
$msg = "注册会员成功
";
$msg .= "会员名:wayne
";
$msg .= "密码:wayne";
$headers = "From: webmaster@263.net Content-Type: text/html; charset=gb2312 ";
mail("$to", "$subject", "$msg", "$headers");
?>
进行编码以后,中文问题解决。