开发者

Sending mail via PHP - Mac OS X and postfix problem [closed]

Closed. This question is off-topic. It is not currently accepting answers. 开发者_开发技巧

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 9 years ago.

Improve this question

I have MAMP installed on my Mac OS X 10.6 install and I'm trying to send email, via PHP, but it doesn't seem to like the fact that postfix isn't installed:

Apr 18 12:27:36 billy-pc postfix[7959]: error: to submit mail, use the Postfix sendmail command Apr 18 12:27:36 billy-pc postfix[7959]: fatal: the postfix command is reserved for the superuser I have a folder in /etc/postfix but for some reason postfix doesn't want to start or send mail

Thanks


I've seemed to have fixed my problem. I'm not 100% sure why, I simply stopped and started postfix and sent a test using:

printf "Subject: TestnHello" | sendmail -f myemail@gmail.com anotheremail@gmail.com

This seemed to send and I can now send mail via PHP. Strange

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜