How to send mail using PHP mail () and MAMP Pro?

I am developing a website that will use the PHP mail () function. I am running MAMP Pro (primarily because it has a Postfix function that should be useful for sending emails). I feel like I tried everything, but my program will still not send emails. It doesn't even matter to me that I use mail (). I just want to be able to send emails from my local MAMP Pro web server so that I can check my site. Any suggestions would be greatly appreciated!

+4
source share
1 answer

You need to configure it for your ISP.

http://documentation.mamp.info/en/mamp-pro/server/postfix

and

http://blog-en.mamp.info/2009/09/how-to-sending-emails-with-mamp-pro.html

Other than that, I agree with the comments. What is your provider? What does php tell you? Also, read your postfix log file and let us know what it says:

http://blog-en.mamp.info/2010/03/how-to-show-postfix-log-file-of-mamp.html

+1
source

Source: https://habr.com/ru/post/1385705/


All Articles