当前位置:Linux教程 - Php - 使用php的编码功能-实例调用(3)

使用php的编码功能-实例调用(3)

<?php
include_once("mime.inc");
$mm = new MIME();
$to = "customer@263.net";
$subject = $mm->encode("商城","gb2312"); // 编码
$msg = "注册会员成功<br>";
$msg .= "会员名:wayne<br>";
$msg .= "密码:wayne</font>";
$headers = "From: webmaster@263.net\r\nContent-Type: text/html; charset=gb2312\r\n";
mail("$to", "$subject", "$msg", "$headers");