Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Building Websites with PHP Contact Form & Sending Email Sending Our Email

Qasim Hafeez
Qasim Hafeez
12,731 Points

Doing this on MAMP

Has anyone done this successfully with MAMP? I had the same problem in a previous php course that involved sending email. I understood everything but, when it came time to send the email, I could not. I've tried the things that I've googled but nothing has worked.

1 Answer

Aurelian Spodarec
Aurelian Spodarec
10,801 Points

Watch the whole course. They should tell about this later on.

You can't send an email from a local server. It won't work. You need to be on a live server, same as a user can't register on your website without internet connection even if you give him your local code.