看你的服务器有没有mail服务。
(其实php手册里面不是说的很详细嘛?为什么不仔细看看呢)

解决方案 »

  1.   

    mail("$user[email]", "$lang[emailnotifysubject] $threadname", "$lang[emailnotifyintro]$threadname$lang[emailnotifyintro2]\n\n$theurl\n\n$lang[emailnotifyend]", "$lang[textfrom] $adminemail");
      

  2.   

    我第二次出售我的劣质产品,没有版权可言,欢迎大家踊跃改进。
    给你个不太成熟的程序吧,临时写的,我在新浪邮箱上测试通过:
    文件一:mail.html
    文件二:mail.php
    记得把她们放在同一目录下!!!!!
    假设你有新浪邮箱[email protected]###########------------文件一:mail.html-------########
    <html><head><title>发信给hk_c</title></head> 
    <body>
    <h2 align="center">hk_c发信界面</h2>
    <hr color="blue">
    <center> 
    <form action="mail.php"> 
    发件人:<input type="text" name="from" size=25 [email protected]><br>
    主题:<input type="text" name="subject" size=20><br> 
    内容:<textarea name="content" cols=80 rows=15>
    hk_c:
    你好!
    </textarea><br> 
    <input type="submit" value="寄出">
    <input type="reset" value="重写"><br> 
    </form> 
    <hr color="blue">
    </body>
    </html>###########------------文件二:mail.php-------########
    <? 
    if (empty($from)&brvbar;&brvbar;empty($subject)&brvbar;&brvbar;empty($content)) 
    {echo "没有完成填写,请<a href=\"mail.html\">返回</a>";} $body=$content; 
    //假设你有新浪邮箱[email protected]
    //假设你还有新浪邮箱[email protected]
    //同时寄两封当然功能强大点
    $deal=mail("[email protected]",$subject,$body,"From:$from");
    $deal2=mail("[email protected]",$subject,$body,"From:$from");
    if($deal1) {echo "寄件成功!";}else{echo "寄件失败!!!";} 
    if($deal2) {echo "寄件成功!";}else{echo "寄件失败!!!";}
    ?> 
      

  3.   

    请问 mail服务要如何配置啊?????????
      

  4.   

    只要Linux机器上开启sendmail服务就行了。
    对大多数国内网站都可以,但有些就不行。
    比如:@chinaren.com 这种邮箱,我就搞不定。
    还望指教。