Skip to content
Permalink
ae5f3fadd5
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
17 lines (10 sloc) 1.01 KB
// You're going to build a web form that utilizes an API endpoint to "send" an email message.
// The endpoint doesn't actually send a message, but it mimics how an actual email API might work.
// (If you're interested in sending emails from a form on your website, check out a service like FormSpree.)
// Build a web form (in HTML) that collects a "to:" email address, subject, and message.
// Use an event listener to intercept the "submit" event of the form. I.e., Your page must not reload or redirect upon pressing the submit button or the return/enter key.
// All form fields are required and the email address must be valid. You may utilize the browser's built-in client-side form validation or manually validate the fields using JavaScript.
// Finally, use a fetch() request to send the form data to the Fake Mailer API and show the response message to the user. (Do not use console.log()!)
// Test your form with fake or incomplete data. Be sure it works as expected!
// Submit the functioning URL to HuskyCT.
// Pr