用PHP在线发送邮件的例子!
来源:重庆广渝网 |
阅读:4840 次
|
日期:2006-12-06
|
<? $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 不能修改,否则发送不成功!
|