http://www.pcimg.com/code/php/article/email/05.htm

解决方案 »

  1.   

    /* $message: mailbody
    $type: been sent mail type 
    $to: the mail to 
    $from: the man who sent mail 
    $title: the project of mail 
    */ 
    //========================================= 
    switch ($type){
    case 'html': 
    $header="Content-type:text/html;"; 
    break; 
    default : 
    $header=''; 

    mail("$to", "$title", $message, "From: $from\nReply-To:$from\n".$header); 
      

  2.   

    mail($mailto,$subject,$message,"From:".$from."\nReply-To:[email protected]\n Content-Type:text/html;charset='gb2312'")Content-Type:text/html;charset='gb2312'
    -----------------------------------------
    这是关键,