<formaction="https://api.web3forms.com/submit"method="POST"><!-- REQUIRED: Your Access key here. Don't worry this can be public --><!-- Create your Access key here: https://web3forms.com/ --><!-- <input type="hidden" name="apikey" value="YOUR_ACCESS_KEY_HERE"> --> <inputtype="hidden"name="access_key"value="YOUR_ACCESS_KEY_HERE"><!-- Optional: Can be type="hidden" or type="text" for subject --> <inputtype="hidden"name="subject"value="New Submission from Web3Forms"><!-- Optional: From Name you want to see in the email Default is "Notifications". you can overwrite here --> <inputtype="hidden"name="from_name"value="Your Website Name"><!-- Optional: To send the form submission as CC email --> <inputtype="hidden"name="ccemail"value="partner@example.com"><!-- Optional: default replyto will be "email" (if available), you may overwrite here --> <inputtype="hidden"name="replyto"value="customer@example.com"><!-- Required: if submitting without Javascript (because by default web3form outputs json) --><!-- If javascript, use "window.location.hash" for redirects --> <inputtype="hidden"name="redirect"value="https://web3forms.com/success"><!-- Optional: But Recommended: To Prevent SPAM Submission. Make sure its hidden by default --> <inputtype="checkbox"name="botcheck"id=""style="display: none;"><!-- Webhooks: Send your form data to Notion, Google Sheets or Zapier. This feature available to PRO & Starter Plan users only --> <inputtype="hidden"name="webhook"value="WEBHOOK_URL_HERE" /><!-- Google reCaptcha v3: To Prevent SPAM Submission.PRO Plan only --> <inputtype="hidden"name="recaptcha_response"id="recaptchaResponse"><!-- Attachments: Make sure the <form> has enctype="multipart/form-data" This feature available to PRO Plan users only --> <inputtype="file"name="attachment" /><!-- Custom Form Data: Then you can include your own form data you wish to receive in email. --> <inputtype="email"name="email"required> <inputtype="text"name="First Name"required> <inputtype="text"name="Phone Number"required> <textareaname="message"cols="30"rows="10"required></textarea> <buttontype="submit">Submit Form</button></form>
Make sure you added `name` attribute, form action URL and the `access_key` to make the form work as expected
Step 3: Add your Access Key
Add your access key to start receiving email submissions.
That's it. Run your code on a browser and it should work. This is a simple starting example. However you can customize it with unlimited possibilities. Checkout other pages to know more.