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