可能重复:
我似乎无法使用PHP的mail()函数获得邮件。我正在开发我的客户端开发服务器,它运行的是Ubuntu的一个版本。我使用以下命令安装了sendmail :apt安装sendmail。之后,我转到/etc/php5 5/apache2/中的php.ini文件,取出sendmail_path的注释,并将其设置为/usr/sbin/sendmail -i -t。尽管如此,我还是没有收到任何邮件。
发布于 2011-08-09 17:09:55
sendmail本身很可能没有正确设置。您能接收到用sendmail命令发送的测试消息吗?例如:echo "test message" | sendmail -s "test message" your-email@your-domain.com
https://stackoverflow.com/questions/6999998
复制相似问题