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

General Discussion

How do I create a contact form as a front-end developer?

Hi there,

How do I create a contact form (that actually sends email) as a front-end developer? My knowledge lies in html, css, js & jquery.

If it's not possible with the given tools, what other options do I have?

Thank you for helping me out!

2 Answers

Steven Parker
Steven Parker
231,127 Points

It's simple enough to create the form itself in the front end.

Once the data is entered, the form is submitted to the server. It's then the server's task (back end) to perform any actions on the data, such as storing it in a database and/or sending it through email.

You might be able to find a 3rd party service you could direct your form to that would email it for you, if your own server is not able to perform this function for some reason.

Kevin Korte
Kevin Korte
28,149 Points

If you can't build the server side, you could use a product like this: https://formspree.io, which is an okay option when you're building a static site.