从本地主机发送邮件与PHP与MAMP [英] Send mail from localhost with PHP with MAMP

查看:155
本文介绍了从本地主机发送邮件与PHP与MAMP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试在网路上找到的所有东西,而且似乎都没有工作,所以我做错了,我需要一些帮助,弄清楚什么。

I've been trying everything I can find on the internet for this, and none of them seem to be working, so I'm doing something wrong and I need some help figuring out what.

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
sendmail_from = myemail@yahoo.com

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

上面的代码是我已经改变了一切,(除了电子邮件是我的实际电子邮件(我也不确定如果雅虎电子邮件将与这个或否,这可能是这个问题))
我不知道sendmail_path在哪里,我找不到那条路径(我想下载一些名为sendmail的文件/程序?)

The above code is what I have changed everything to, (except for the email is my actual email (also I'm not sure if yahoo email will work with this or not, so maybe that's the problem?)) I am not sure where the sendmail_path goes to, I cannot find that path anywhere (am I suppose to download some file/program called sendmail?)

还有,我的APACHE端口我已经改为80,我的MySQL端口是3306(我不知道这些端口是否与smpt_port有关)

also, my APACHE port I have changed to 80, and my MySQL port is 3306, (I don't know if those ports have anything to do with the smpt_port or not)

任何帮助非常感谢,谢谢!

Any help would be greatly appreciated, thanks!

(如果有其他方法,(更容易的方式)这样做,请让我知道)。

(if there are any other ways, (easier ways) of doing this, please also let me know).

推荐答案

MAMP PRO已经有了这个,并且有一个简单的界面来做到这一点,我得到它,我的工作完美。
http://www.mamp.info/en/mamp-pro/

MAMP PRO already has this, and has a simple interface to do this, I got it and I have it working perfectly. http://www.mamp.info/en/mamp-pro/

这篇关于从本地主机发送邮件与PHP与MAMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆