$to = net@netwhois.cn;
$subject = "ZDNet Developer article";
$msg = "I completely understand SMTP servers now!";
$headers = "From: support@netwhois.cn\r\nReply-To: net@netwhois.cn";
mail("$to", "$subject", "$msg", "$headers");
echo "finished!";
?>
注意:
$to 、$subject 、$msg几个参数的内容都可以任意修改。
$headers 不能修改,否则发送不成功!
(易网科技——您身边的网络专家)