I would like to create a form that sends the input of the form to a desired email when a submit button is clicked. Ideally, I would like to use HTML.
Here is what I've got so far:
<form class="row g-3 needs-validation" novalidate
action=”mailto:myemail@gmail.com”
method=”POST”
enctype=”multipart/form-data”
name=”EmailForm”>
<div class="col-md-4" style="margin-top: 2.4%">
<div class="valid-feedback">
</div>
</div>
<div class="col-md-4">
<label for="floatingInput" class="form-label">First name</label>
<input type="text" class="form-control" id="floatingInput" placeholder="Konnie"></div><br>
<div class="col-md-4">
<label for="floatingInput" class="form-label">Last name</label>
<input type="text" class="form-control" id="floatingInput" placeholder="Smith" required>
</div><br>
<div class="form-floating mb-3">
<input type="email" class="form-control" id="floatingInput" placeholder="name@example.com" required>
<label for="floatingInput">Email address</label>
</div>
<div class="col-12"> <div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="invalidCheck" required>
<label class="form-check-label" for="invalidCheck">
Agree to terms and conditions
</label>
<div class="invalid-feedback">
You must agree before submitting.
</div>
</div>
</div>
<br>
<div class="col-12">
<button class="btn btn-primary" type="submit">Submit form</button>
</div>
</form>
When I try to submit the form, I get this error:
Not Found
The requested URL was not found on this server.