本文介绍了如何使用PHP的mail()函数和MAMP Pro发送邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个使用PHP的mail()函数的网站。我正在运行MAMP Pro(主要是因为它具有对发送电子邮件有用的Postfix功能)。我觉得我已经尝试了一切,但我的程序仍然不会发送电子邮件。对我来说,我使用mail()并不重要。我只想从我的本地MAMP Pro网络服务器发送电子邮件,以便我可以测试我的网站。任何建议将不胜感激!

I'm developing a website that will utilize PHP's mail() function. I'm running MAMP Pro (primarily because it has the Postfix feature that is supposed to be useful for sending emails). I feel like I've tried everything, but my program still won't send emails. It doesn't even really matter to me that I use mail(). I just want to be able to send emails from my local MAMP Pro webserver so I can test out my website. Any suggestions would be greatly appreciated!

推荐答案

您需要为您的ISP设置。

You need to set it up for your ISP.

除此之外,我同意评论。你的ISP是什么? php告诉你什么?另外,阅读你的postfix的日志文件,并告诉我们它说了什么:

Other than that, I agree with the comments. What is your ISP? What is php telling you? Also, read your logfile for postfix and tell us what it says:

这篇关于如何使用PHP的mail()函数和MAMP Pro发送邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 18:29