How to Add an HTML Email Contact Form in Blogger
Blogger cannot run PHP. Embed an HTML contact form that emails you and stores submissions via a form endpoint — works in Blogspot themes without gadgets that break.
MyFormConnect Team
Blogger (Blogspot) is a fully hosted platform — there's no server-side PHP available, no way to install plugins, and the built-in contact gadget is limited and often breaks after theme updates. Despite this, you can add a fully functional contact form that emails you on every submission, with spam protection, using only HTML. This guide shows you exactly how.
Blogger hosts your blog on Google's infrastructure and renders your theme templates. You can customise the HTML and CSS of your theme, and you can embed raw HTML into individual pages and posts. What you can't do:
mailto: reliably — it opens the visitor's local email client, which many people don't have configuredThe solution is a standard HTML form that posts to an external endpoint. The endpoint runs on someone else's server; your Blogspot theme just needs to contain the form HTML.
The easiest way is to create a dedicated Contact page:
<form action="https://myformconnect.io/f/YOUR_FORM_ID" method="POST" style="max-width:500px;">
<p>
<label for="cf-name"><strong>Name</strong></label><br />
<input id="cf-name" name="name" type="text" required
style="width:100%; padding:8px; border:1px solid #ccc; border-radius:4px;" />
</p>
<p>
<label for="cf-email"><strong>Email address</strong></label><br />
<input id="cf-email" name="email" type="email" required
style="width:100%; padding:8px; border:1px solid #ccc; border-radius:4px;" />
</p>
<p>
<label for="cf-message"><strong>Message</strong></label><br />
<textarea id="cf-message" name="message" rows="6" required
style="width:100%; padding:8px; border:1px solid #ccc; border-radius:4px;"></textarea>
</p>
<input type="hidden" name="_redirect" value="https://yourblog.blogspot.com/p/thank-you.html" />
<p>
<button type="submit"
style="padding:10px 24px; background:#3b82f6; color:#fff; border:none; border-radius:4px; cursor:pointer;">
Send message
</button>
</p>
</form>The inline styles are there because Blogger themes often don't style form elements by default. Once you confirm the form works, you can move the styles to your theme's CSS if you prefer.
Create a second Blogger page titled "Thank you" and set its URL to something like /p/thank-you. Update the _redirect hidden field in the form to point to its full Blogspot URL. This page should simply confirm the submission was received and offer a link back to the blog.
Blogspot blogs indexed by search engines will attract form spam relatively quickly. Enable honeypot protection in your form settings before promoting the contact page. If spam becomes a persistent problem, turn on content scoring or rate limiting — both are available in the form settings without any code changes.
Once the form is in place and you've done a successful test submission, there's nothing else to maintain on the Blogger side. The form HTML sits in your page and posts to the endpoint; submissions accumulate in the dashboard and arrive in your inbox. If you ever want to add Telegram or Discord notifications later, that's a settings change on the endpoint — no edits to the Blogger theme required.
The one thing to keep an eye on is spam, particularly if the blog has good search visibility. Enable honeypot protection from the start and revisit the settings if spam submissions start getting through.
Create a free MyFormCapture form endpoint and skip building your own backend.
Start Free TrialNo credit card required · 5-minute setup