Permalink
Cannot retrieve contributors at this time
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?
2024-spring-dmd-3475/week-11/sketch.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
17 lines (10 sloc)
1.01 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |