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

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.