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

Andrew Pickner
Andrew Pickner
7,301 Points

Contact Form next steps...

So I've been working on a simple static website for my Mom who is a lawyer. I've been going through the Beginning Web Dev Course on here, and trying to get my feet wet with Foundations6 on Lynda.com. I also know some other languages including a little Python.

I love contact forms, and would love to add one to my moms site, but I'm unsure as to what they actually do. Do they send an email to the site owner? Also, what language would be the easiest back-end solution to this problem?

2 Answers

Mikkel Rasmussen
Mikkel Rasmussen
31,772 Points

Hi

It's varies from site to site some only sends out an email to the person in charge of replying to customers some others save the data in a database and displays a "support ticket" like structure if you know what I mean.

The easiest option would probably be PHP as the backend langauge to the site. You will learn how to send out an email in this course: https://teamtreehouse.com/library/build-a-basic-php-website

Andrew Pickner
Andrew Pickner
7,301 Points

That all makes perfect sense! Thank you for your answer! I just have one small follow-up question: When sending email with PHP mailer, what are the Pros and Cons of sending an inline-styled HTML document to the site owner? Im styling it to make it easy to read and distinguish the key details, but I feel like this may have a negative impact on performance for the site.