Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP

Ozziejeanpierre Torres
Ozziejeanpierre Torres
3,066 Points

How can I make a form in php to send out into an email? (I need, name, email, phone number, comment, and upload file)

I am working on a project and have not figured out why I cannot receive email from my forms. I have tried many different way to make this happen. I also have tried 3rd party options. I have tried simple forms to complex forms, but none seem to work. PLEASE help. This is my fist forum post so I you have any questions feel free to ask. Thank you for your help.

3 Answers

Ricardo Diaz
Ricardo Diaz
30,415 Points

If you are doing it locally its never worked for me till I upload it to a server or you can use this to test it.

http://www.toolheap.com/test-mail-server-tool/

A great framework you can use for email is:

http://swiftmailer.org/

Jonathan Romine
Jonathan Romine
9,344 Points

Are you on your localhost ?

Ozziejeanpierre Torres
Ozziejeanpierre Torres
3,066 Points

Okay cool. I only have been testing it on workspaces. It never seemed to work which I associated it to be because of the code. I thought this could be the problem. I have a website that I will be uploading it to today. Thanks for the advice.