我都是这么写
sendmail_path = /usr/sbin/sendmail -t如果要查找sendmail在那里。

#whereis sendmail
就可以看到你机器上sendmail在哪。

解决方案 »

  1.   

    请问 david017:
     sendmail_from    =
    要做设置吗?mail("[email protected]","hello","fine thank yu","From:\"lluohongg\"<[email protected]>") or die("false");
    echo "ok";就可发信了吗?
      

  2.   

    for unix onlysendmail_path = ;for unix only, may supply arguments as well (default is sendmail -t)
    搜索文件用find / -name sendmail
      

  3.   

    我有时不对这个sendmail = 作设置,保留是空,
    也能发信(用php)
    但如果设置了并且设置错了,肯定不能发信。
      

  4.   

    在win下要装邮件服务器,同时SMTP之类也要设
      

  5.   

    sendmail_path string
    Where the sendmail program can be found, usually /usr/sbin/sendmail or /usr/lib/sendmail configure does an honest attempt of locating this one for you and set a default, but if it fails, you can set it here. Systems not using sendmail should set this directive to the sendmail wrapper/replacement their mail system offers, if any. For example, Qmail users can normally set it to /var/qmail/bin/sendmail.