[Solved] Simple HTML/CSS website requires a form content placement in an email message


If you’re adamant you that you don’t want to use PHP, you can always do something like this: (It’s not really considered best practice)

    <form action="mailto:[email protected]?Subject=Signup%20Info" enctype="text/plain" method="post">
      <p><label for="firstName">First Name:</label><p>
      <p><input type="text" name="firstName" id="firstName" required><p><br>
      <p><label for="lastName">Last Name:</label><p>
      <p><input type="text" name="lastName" id="lastName" required><p><br>
      <input type="submit" value="Submit">
  </form>

Obviously, the mailto will redirect your user to their default email provider, with your email address ready to send your desired form variables.. Of course it’s not entirely ‘automatic’.. But I doubt if it’s entirely possible without a server side script since HTML are just tags.
Of course I would always recommend using a server side script to validate, store and email your form variables versus using this method I’ve prescribed above. But enjoy 🙂

solved Simple HTML/CSS website requires a form content placement in an email message