这位老大,你还不满足!呵呵
小弟连mail()函数都用不了,可怜啊,可怜!能告诉小弟,在win2kserver下,apache+php,怎么配smtp吗?
感谢之极!!!

解决方案 »

  1.   

    在php.ini里设置你的smtp服务器SMTP = localhostsendmail_from = [email protected]
      

  2.   

    未必一定要用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");
     
      

  3.   

    在php.ini里设置你的smtp服务器SMTP = yourdominsendmail_from = name@yourdomin
      

  4.   

    mail()是有一些问题,信没发出去也不报错.我以前给学校做了个bbs注册认证的东西,用的是网上找来的用socket发送邮件的代码,你去google搜索一下,肯定能搜到.因为那个现在在学校里,而且bbs好久不开发了,不知道网管删了没有.所以你自己搜一下吧.