163的邮件是需要smtp身份验证的
win系统没有sendmail
所以在win系统里想用发email,得自己写smtp带身份验证的类。
在linux类系统里,直接调用mail函数(用sendmail)发邮件就可以了。
$emails = "From: UTO·<[email protected]>\r\nReply-to: UTO·<[email protected]>\r\nContent-type: text/html";
mail($to,$subject ,$message,$emails");