Python Flask that fills out a form and sends an email via SES

This commit is contained in:
2024-02-27 23:42:41 -06:00
commit b4beb3df46
3 changed files with 84 additions and 0 deletions

22
form.html Normal file
View File

@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Web Form</title>
</head>
<body>
<h2>Enter your information:</h2>
<form method="post">
<label for="name">Name:</label><br>
<input type="text" id="name" name="name" required><br>
<label for="phone">Phone Number:</label><br>
<input type="tel" id="phone" name="phone" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}" placeholder="123-456-7890" required><br>
<label for="address">Address:</label><br>
<input type="text" id="address" name="address" required><br>
<label for="comments">Comments:</label><br>
<textarea id="comments" name="comments" rows="4" cols="50"></textarea><br><br>
<input type="submit" value="Submit">
</form>
</body>
</html>