Send mail form

Here is an example of a simple HTML form that can be used to send an email:

<form action="mailto:[email protected]" method="post" enctype="text/plain">
  <label for="name">Name:</label>
  <input type="text" id="name" name="name"><br><br>
  <label for="email">Email:</label>
  <input type="email" id="email" name="email"><br><br>
  <label for="message">Message:</label>
  <textarea id="message" name="message"></textarea><br><br>
  <input type="submit" value="Send">
</form>

This form has three fields: name, email, and message. The action attribute specifies the email address that the form should be sent to, and the method attribute specifies that the form should be sent using the POST method. The enctype attribute specifies that the form data should be sent as plain text.

When the form is submitted, the browser will send a request to the specified email address with the form data included in the request body. The email address can then be used to send an email to the user who submitted the form.

You can also use a server-side language like PHP to handle the form submission and send the email. Here is an example of how you can do this:

<?php
  if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $name = $_POST["name"];
    $email = $_POST["email"];
    $message = $_POST["message"];

    $to = "[email protected]";
    $subject = "Contact Form Submission";
    $body = "Name: $name\nEmail: $email\nMessage: $message";

    mail($to, $subject, $body);
  }
?>

This PHP code checks if the form was submitted using the $_SERVER["REQUEST_METHOD"] variable, and if so, it extracts the form data from the $_POST array. It then uses the mail() function to send an email to the specified email address with the form data included in the email body.

You can also use a third-party service like Mailgun or Sendgrid to handle the email sending. They provide APIs that allow you to send emails programmatically.

Please note that this is a basic example, you should consider security and validation of the form data before sending it to an email address.