drkenap147751 2011-08-20 17:44
浏览 35
已采纳

XAMPP OSX Lion让邮件上班

Although this has been asked before, due to the fact that no satisfactory answer was provided, I thought I'd bring up that subject once again.

So: how can I get PHP's mail function to work on a Mac (I am using OS X Lion) using XAMPP?

Currently, I have the following php.ini configuration:

[mail function]
; For Win32 only.
SMTP = smtp.server.xts
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com
sendmail_from = user@server.xts

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail -t -i

So… why does it still not work and how can I fix it?

  • 写回答

1条回答 默认 最新

  • dongyi2083 2011-10-12 14:28
    关注

    I needed this myself, and found the answer at:

    http://mabblog.com/blog/2011/09/lion-smtp-postfix-relay-and-dreamhost/

    I won't repeat the instructions, but the basic idea is that Lion's sendmail command is simply a wrapper for postfix. So in order to enable sendmail, you have to configure postfix to relay mail to an external mail server that you are authorized to use.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 拓扑学,凸集,紧集。。
  • ¥15 如何扩大AIS数据容量
  • ¥15 单纯型python实现编译报错
  • ¥15 c++2013读写oracle
  • ¥15 c++ gmssl sm2验签demo
  • ¥15 关于模的完全剩余系(关键词-数学方法)
  • ¥15 有没有人懂这个博图程序怎么写,还要跟SFB连接,真的不会,求帮助
  • ¥15 PVE8.2.7无法成功使用a5000的vGPU,什么原因
  • ¥15 keil官网下载psn序列号在哪
  • ¥15 想用adb命令做一个通话软件,播放录音