简单的HTML / CSS网站需要在电子邮件中放置表单内容

Simple HTML/CSS website requires a page with a form with 3 element and also requires to place a form content in an e-mail message. Can it be done with out PHP or any scripting

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:example@example.com?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 :)

You can simply use PHPMailer. It is Easy to use. https://github.com/PHPMailer/PHPMailer