建议你使用phpmailer类,有些服务器不支持mail函数,所以不方便

解决方案 »

  1.   

    $headers  = "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
    这两句可以照抄,
    $headers  = "MIME-Version: 1.0\r\n";(这是抄送,可以同时发给多人,中间用‘,’各开)
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";(为密抄,和CC一样,可以不写的)$headers .= "To: Mary <[email protected]>, Kelly <[email protected]>\r\n";
    $headers .= "From: Birthday Reminder <[email protected]>\r\n";
    这两个照样写就可以了。