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
Juan Luna
11,483 PointsQuestion about a simple form
Hi, I'm doing my portfolio in html /css and I'm doing a form where people can send me and email
http://i.imgur.com/WPrDWEZ.png
When a person clicks in the submit button an email is going to be sent to my gmail account but I don't know how to do that, any suggestions? (I think it is php but I don't know anything about that)
Thanks :)
3 Answers
Joseph Gennitti
16,870 PointsYou have to use php to send your email. Check this video out its not that hard. http://m.youtube.com/watch?v=5a_zy_utoFM
But first you need to have your contact form on a web server for it to work. But just follow what this guy does and you will get it working. Its pretty simple to follow.
Kevin Korte
28,149 PointsForms are quite complicated, even simple ones.
There are courses on here that show use to use the PHP Mailer library to do this.
The library itself is found here: https://github.com/PHPMailer/PHPMailer
Don't forget about proper validation
Juan Luna
11,483 PointsJuan Luna
11,483 PointsWell, thanks for the answer but that seems pretty hard for what I want to do.