开发者

PHP mail() Not Working [duplicate]

This question already has answers here: Closed 10 years ago. 开发者_高级运维

Possible Duplicate:

Troubleshooting PHP Mail

I can't seem to get mail using PHP's mail() function. I am working on my client's dev server, which is running a version of Ubuntu. I installed sendmail using the following command: apt-get install sendmail. After that I went to the php.ini file in /etc/php5/apache2/ and took out the comment for sendmail_path and set it to /usr/sbin/sendmail -i -t. Despite this, I'm still not getting any mail.


It's quite likely that sendmail itself is not set up correctly. Can you receive a test message sent with the sendmail command? E.g.: echo "test message" | sendmail -s "test message" your-email@your-domain.com

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜