配置 sendmail on mac os x
来源:互联网 发布:禁枪国家知乎 编辑:程序博客网 时间:2024/05/12 09:12
Unable to send email using PHP mail()? Learn how to configure sendmail on mac os x…
Open up /etc/php.ini and set the sendmail_path:
1
sendmail_path = "/usr/sbin/sendmail -t -i"
then restart apache:
1
apachectl restart
if you try sendmail…
1
sendmail
you will get an error:
1
sendmail: fatal: chdir /Library/Server/Mail/Data/spool: No such file or directory
so, to fix this, we’ll need to create the directory /Library/Server/Mail/Data/spool
:
(make sure you are root)
1
mkdir -p /Library/Server/Mail/Data/spool
next, we need to tell postfix to set the correct permissions:
1
/usr/sbin/postfix set-permissions
and restart postfix:
1
/usr/sbin/postfix start
You can now send email using mail()!
阅读全文
0 0
- 配置 sendmail on mac os x
- OpenCV on Mac OS X
- OpenGL on Mac OS X
- Mac OS X配置环境变量
- Mac OS X 配置环境变量
- Mac OS X 配置环境变量
- Mac OS X 配置环境变量
- Mac OS X配置jdk
- mac os x配置技巧
- Mac OS X 配置Apache
- Mac OS X 配置环境变量
- Mac OS X 配置环境变量
- Driver development on Mac OS X (1)
- subversion 1.6.9 on Mac OS X
- dlopen memory leak on mac os x.
- IE on mac os x(snow leopard)
- Uninstall MySQL on Mac OS X
- Use MySQL on Mac OS X
- 求两个数之间的约数和个数
- MySQL InnoDB四个事务级别 与 脏读、不重复读、幻读
- 如何固定列表控件当中列的宽度
- MySQL索引类型总结和使用技巧以及注意事项
- 蘑菇街即时通讯框架
- 配置 sendmail on mac os x
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- Java NIO原理分析
- [leetcode] 91. Decode Ways
- Hibernate,Spring管理获取事务里的Session
- echarts3的简单实践(饼图、柱形图、折线图、地图+散点图)
- Hibernate中对象的三种状态及相互转化
- iOS常用的开发工具
- Go panic, defer, recover 的异常处理