Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 通过PHP发送邮件-Mac OS X和后缀问题_Macos_Postfix Mta - Fatal编程技术网

Macos 通过PHP发送邮件-Mac OS X和后缀问题

Macos 通过PHP发送邮件-Mac OS X和后缀问题,macos,postfix-mta,Macos,Postfix Mta,我已经在Mac OS X 10.6上安装了MAMP,我正在尝试通过PHP发送电子邮件,但它似乎不喜欢没有安装postfix的事实: Apr 18 12:27:36 billy pc postfix[7959]:错误:要提交邮件,请使用postfix sendmail命令 Apr 18 12:27:36 billy pc postfix[7959]:致命:postfix命令是为超级用户保留的 我在/etc/postfix中有一个文件夹,但出于某种原因,postfix不想启动或发送邮件 谢谢我似乎

我已经在Mac OS X 10.6上安装了MAMP,我正在尝试通过PHP发送电子邮件,但它似乎不喜欢没有安装postfix的事实:

Apr 18 12:27:36 billy pc postfix[7959]:错误:要提交邮件,请使用postfix sendmail命令
Apr 18 12:27:36 billy pc postfix[7959]:致命:postfix命令是为超级用户保留的
我在
/etc/postfix
中有一个文件夹,但出于某种原因,postfix不想启动或发送邮件


谢谢

我似乎已经解决了我的问题。我不是100%确定原因,我只是停止并启动了postfix,并使用以下方式发送了一个测试:

printf“主题:TestnHello”| sendmail-fmyemail@gmail.com anotheremail@gmail.com

这似乎是发送,我现在可以通过PHP发送邮件。奇怪的