求助那位大侠用过mail()函数。 这位老大,你还不满足!呵呵小弟连mail()函数都用不了,可怜啊,可怜!能告诉小弟,在win2kserver下,apache+php,怎么配smtp吗?感谢之极!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在php.ini里设置你的smtp服务器SMTP = localhostsendmail_from = [email protected] 未必一定要用onclick,用onsubmit也可以,form递交后,到send_mail.php代码如下: if(mail($to,$subject,$message,"From: $from) ) require("mail_succed.php"); //mail成功信息画面 //或header("Location: mail_succed.php"); else require("mail_failed.php"); //mail失败信息画面 //或header("Location: mail_failed.php"); 在php.ini里设置你的smtp服务器SMTP = yourdominsendmail_from = name@yourdomin mail()是有一些问题,信没发出去也不报错.我以前给学校做了个bbs注册认证的东西,用的是网上找来的用socket发送邮件的代码,你去google搜索一下,肯定能搜到.因为那个现在在学校里,而且bbs好久不开发了,不知道网管删了没有.所以你自己搜一下吧. 请教PHP导入Excel到MySQL的问题 php 是怎么使用的? 过年了,散发了 求一PHP连修改数据库表的简单代码 初学cakeph框架,高手帮忙啊 file_get_contents函数不能用 php连接sqlserver2005 查询域名是否已经注册 关于在线打分,再次求助! PHP如何获取Header信息 怎么不能显示汉字呢 急急 求救!!!!怎么才能让文章自动折行!!!!
代码如下:
if(mail($to,$subject,$message,"From: $from) ) require("mail_succed.php"); //mail成功信息画面
//或header("Location: mail_succed.php");
else
require("mail_failed.php"); //mail失败信息画面
//或header("Location: mail_failed.php");