最好的邮件编码解码类,再没有比这个好的了!贴不下了(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 |
<< 用PHP发电子邮件2用PHP读取IMAP邮件 >>
查看所有评论
