客服电话:029-85795818

用PHP在线发送邮件的例子!

<?
$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 不能修改,否则发送不成功!

数据网 ©2014- All Rights Reserved. 备案号:陕ICP备14006389号-4