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

PHP code needed to send a form

I have built an HTML form but need some code for it to actually send the message to my email account. Can anyone help please?

2 Answers

You'll find this course a good introduction.

All of it is good, but it sounds like you're after the content in the least badge 'Wrapping Up The Project'.

I had a brief look at that part before but found it a bit confusing as the mjaority of the project was built in PHP.

Hey Jake Porritt,

Because you raised this question in the php section, I assumed that's how you wanted to send your form ;)

You won't be able to send any emails using html. Sending emails is done by a server, therefore you need to use a server side language (like php or ruby) to get everything hooked up.

What are you looking to do?