用PHP写mail函数 配置好后需要重启apache
时间:2008-04-14 来源:剑心通明
今天看书,看到mail函数,就自己练着写了个简单的程序。
要注意的一点是,mail函数的使用,需要在
[url=javascript:;]php[/url]
.ini里边配置。
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from =
[email protected]
配置后
[mail function]
; For Win32 only.
SMTP = smtp.tom.com //指定你的邮箱smtp
smtp_port = 25
; For Win32 only.
sendmail_from =
[email protected]
//你所使用的邮箱
配置好后要记得重启
[url=javascript:;]apache[/url]
啊!
不过真是怪了,在单位写的就发送成功了,在家写一样一样的就没成功,大家来看看~~
原文地址:
http://www.phpchina.com/?9136/action_viewspace_itemid_3514.html
相关阅读 更多 +
排行榜 更多 +