最好的邮件编码解码类,再没有比这个好的了!贴不下了(2)6


= $mail_info["content-transfer-encoding"];

        if($ctype == "") $ctype = "text/plain";

        $type = $ctype;

        $ctype = split(";",$ctype);
        $types = split("/",$ctype[0]);

        $maintype = strtolower($types[0]);
        $subtype = strtolower($types[1]);

        switch($maintype) {
        case "text":
            $body = $this->compile_body($body,$ctenc);
            switch($subtype) {
            case "html":
                if(!$mime_show_html)
                    $body = $this->build_text_body(strip_tags($body));
                $msgbody = $body;
                break;
            default:
                $msgbody = $this->build_text_body($body);
                break;
            }
            break;
    &n
Copyright © 2008 chengduxinxi.com All Rights Reserved PHP编程开发 由朝夕网络维护