<?
$to = "booyun@booyun.net";
$subject = "ZDNet Developer article";
$msg = "I completely understand SMTP servers now!";
$headers = "From: sendmail@booyun.net\r\nReply-To: booyun@booyun.net";
mail("$to", "$subject", "$msg", "$headers");
echo "finished!";
?>
注意:
$to 、$subject 、$msg几个参数的内容都可以任意修改。
$headers 不能修改,否则发送不成功!