开发者

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

开发者 https://www.devze.com 2023-02-26 05:02 出处:网络
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. 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

精彩评论

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