Important: reCAPTCHA Update Required
All users must update their reCAPTCHA secret key by 2025-05-01.Update your settings now →
Form to Email Service for Static Websites
Integrate HTML forms into your static website without any server-side code. Just configure your form and start receiving submissions in your inbox.
How it Works
- 1Register for free and get your unique API key
- 2Add your API key and our endpoint to your HTML form
- 3Configure reCAPTCHA to prevent spam (required)
- 4Start receiving form submissions in your email
Features
- No server-side code required
- reCAPTCHA spam protection
- Instant email notifications
- Custom success/error redirects
- File attachments support
Integration Example
<!-- Complete form with reCAPTCHA and custom fields -->
<form action="https://api.staticforms.xyz/submit" method="POST">
<!-- Required: Your Static Forms API key -->
<input type="hidden" name="apiKey" value="YOUR_API_KEY">
<!-- Enable reply-to functionality -->
<input type="hidden" name="replyTo" value="@">
<!-- Anti-spam honeypot field -->
<input
type="text"
name="honeypot"
style="display: none"
tabindex="-1"
autocomplete="off"
>
<!-- Form fields -->
<div class="form-group">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
</div>
<!-- Custom field with $ prefix -->
<div class="form-group">
<label for="company">Company:</label>
<input type="text" id="company" name="$company">
</div>
<div class="form-group">
<label for="message">Message:</label>
<textarea id="message" name="message" required></textarea>
</div>
<!-- reCAPTCHA integration -->
<div class="g-recaptcha" data-sitekey="YOUR_SITE_KEY"></div>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<!-- Optional redirect URLs -->
<input type="hidden" name="redirectTo" value="https://example.com/success">
<button type="submit">Send Message</button>
</form>
Required Setup:
- Replace
YOUR_API_KEY
with your Static Forms API key - Replace
YOUR_SITE_KEY
with your reCAPTCHA site key
Features Included:
- Custom fields with
$
prefix - reCAPTCHA spam protection
- Anti-spam honeypot field
- Reply-to functionality
- Success page redirect
Ready to get started?
Create your account now and start receiving form submissions in minutes.
Register Now