I use MAMP on my computer to test sites before full upload.
I have a script that emails my form information. I have used this form on an outside server, and no problems at all.
I installed this same script on my MAMP server and it will not forward the email message. It does give me the confirmed message, so I am not sure why it is not working. I have a theory, that there is a php setting that needs to allow it to send emails. I do not know php well enough to tell it how to send mail.
Make sure that you have enabled Postfix on your Mac. This is outside
the scope of MAMP, you will need to either google the command-line for
this, or use one of the “Postfix Helper” apps available for your
version of Mac OS to do this. I used one several versions ago, I
believe called Postfix Helper of all things, and it did exactly as it
said on the tin. I needed to do this because I was in a hotel and they
were blocking my email out somehow. Thankfully they were not blocking
the port directly.
Walter
On Jul 9, 2010, at 8:58 AM, sampolfonz wrote:
I have a script that emails my form information. I have used this
form on an outside server, and no problems at all.
I installed this same script on my MAMP server and it will not
forward the email message.
It occurs to me that perhaps this is what is happening on your setup
– if your ISP blocks port 25, you will not be able to send mail
directly from your computer unless you do something tricky and use a
different port.
My regular “Mac Mail” works just fine. Pardon my lack of understanding on this issue…
I want to be able to use the script inside the site folder inside the htdocs folder in MAMP to be able to send the mail. The script is working fine on my GoDaddy server, I just want to be able to test it from my own MAMP setup, to save on upload times (just for the sake of testing a form).
I do not understand much about the terminal level of the mac. I can pursue it if you think it will solve my issue.
My regular “Mac Mail” works just fine. Pardon my lack of
understanding on this issue…
If you want to send mail from your local machine and receive it on
your local machine - the email is not going out to the world - then
your Mac needs to function as a self-contained mail server.
Okay. What can I do to make this happen? Would the Mailserve app
you mention do the trick for me?
Yes. The upshot to the app is obviously convenience plus it offers a
lot of settings options, though they may be overkill for your needs.
But if you want to save some $ then using the Terminal is the way to
go and relatively easy. Lots of tutorials out there.
If you upgrade to MAMP PRO it has a built-in email feature, meaning it
enables Postfix for you but it doesn’t have all the features of the
MailServe app.