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 trialCrystal Vesely
14,500 PointsHelp please! What do I need to learn in order to create a data form that’ll submit to the clients email?
I have completed front end and am still working on completing my full stack. I want to create a form to gather info from the user and send it to an email. I know how to create the form using html/css. And I do understand a little of how the name property is used when it sends it to a database. But I didn’t know if all I’m wanting to do with the data was send it to an email if it would even require a database? Where should I start? I currently am learning JavaScript, Node, Express, and SQL. I just can’t figure my next step. I appreciate any advice.
1 Answer
Travis Alstrand
Treehouse Project ReviewerUnfortunately, Express alone can't send emails directly because it's a web server framework designed to handle HTTP requests and responses. However, it can handle the form data submission, while an additional tool is needed to actually send the email.
I've used EmailJS for two projects in the past and haven't had any issues. There's also Nodemailer and others available as well. 👍
Crystal Vesely
14,500 PointsCrystal Vesely
14,500 PointsThanks so much for the information. It’s been difficult for me to figure out what to research when I’m so uncertain what is required to get the job done! This is tremendous help!!!