求助那位大侠用过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好久不开发了,不知道网管删了没有.所以你自己搜一下吧. 请问linux下xampp集成环境中怎么为php添加curl扩展? 求PHP unit_test用法 ThinkPHP连接sql sever问题 数组怎么组合 php中如何得到select 多选框中选中和没选中的option的值 网页里,用绝对地址会慢么? php查询数据库的int字段,打印出来怎么是字符串类型呢? mysql语句 SmartTemplate中如何输出产品列表那种每行几个然后就拐弯的表格 我的apache不能用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");