How to Send Contact Form Email With Resend (No Backend)

Send contact form email with Resend and no backend code: a notification on every submission plus an auto-reply to the sender, all on your own Resend key.

Bahroze Ali
·Updated ·6 min read
How to Send Contact Form Email With Resend (No Backend)

To send contact form email with Resend without a backend, point your form at an OSForms endpoint and paste your Resend API key into the email integration. Every submission then triggers a notification to your inbox plus an optional auto-reply to the sender, both sent through your own Resend account.

Every web app has at least one form, and every time you ship one you need the same two things: a notification when someone fills it out, and ideally a confirmation back to them. The usual path is painful. You stand up a server, wire up an email provider, handle errors, manage retries. Or you reach for a hosted form tool and hit a paywall the moment you want email forwarding, even though you're supplying the API key yourself.

This walks through the BYOK way, step by step: alerts to your inbox and a custom auto-reply to the submitter, both sent through your own Resend account, with no backend to maintain.

Send Contact Form Email With Resend, No Paywall

Here's what you'll wire up:

  • Every submission stored in a dashboard you control
  • A notification email to your team on each submission
  • A custom auto-reply to the person who submitted
  • Per-send delivery logs so you can see exactly what happened

All of it runs on your Resend key. OSForms makes the API call; Resend bills your account directly. Resend's free plan covers 3,000 emails a month, capped at 100 a day (resend.com/pricing, November 2026), so a small contact form usually costs nothing to notify on. If a busy form could pass 100 emails in a day (remember an auto-reply doubles the count), plan for Resend's paid tier. There's no per-email markup and no integration tier to unlock.

That second part is where most hosted form tools differ. They email you a notification on their free plans, but the auto-reply to the submitter is where the paywall sits. As of November 2026, Formspree lists auto-response from its $30/month Professional plan (formspree.io/plans), Basin from its Growth plan at $24.17/month billed yearly (usebasin.com/pricing), and Web3Forms from its $149/year Pro plan (web3forms.com/pricing). Those tools send from their own infrastructure, so the fee is real cost plus margin. When the email goes out on your Resend key, there's nothing left to charge for.

You'll need an OSForms account and a Resend account. Both are free, no card required.

Connecting Your Resend Key

1. Create a form. In the dashboard, hit New Form and name it (for example "Contact Form"). You'll get a unique endpoint URL:

https://osforms.com/api/v1/f/abc123xyz

2. Add the email integration. Go to Integrations → Email, paste your Resend API key (it starts with re_), and set the from address plus one or more to addresses for notifications.

OSForms encrypts your key at rest with AES-256-GCM. It's never stored in plain text, never logged, and only decrypted in memory when a submission arrives.

3. Point your form at the endpoint. Set the URL as your form's action attribute:

<form action="https://osforms.com/api/v1/f/abc123xyz" method="POST">
  <label for="name">Name</label>
  <input type="text" id="name" name="name" required />
 
  <label for="email">Email</label>
  <input type="email" id="email" name="email" required />
 
  <label for="message">Message</label>
  <textarea id="message" name="message" rows="4" required></textarea>
 
  <button type="submit">Send</button>
</form>

Submit it, and within seconds the notification email lands in your inbox with every field formatted into a table. The form works on any stack: plain HTML, React, Vue, Astro, anything that can send a POST request. If you're building the markup from scratch, the HTML contact form tutorial covers labels, native validation, and every response code the endpoint can return.

4. Set a success redirect. If you don't set a redirect URL, the endpoint replies with a JSON { "success": true } body. That's fine for fetch/AJAX, but a plain HTML form will drop your visitor on raw JSON. For HTML forms, set a redirect URL in form settings (for example /thank-you) so visitors land on a clean confirmation.

Writing a Custom Auto-Reply Template

A notification tells you about the submission. An auto-reply tells the submitter you got it. It's the feature most hosted tools lock behind a higher tier. OSForms includes it for free.

In your email integration, turn on Auto-Reply. It ships with a sensible default template you can edit, and you control two things:

  • Subject, for example Thanks for reaching out
  • HTML template, the body of the reply

Both support variables interpolated from the submission:

  • {{formName}}, {{submittedAt}}, {{submissionId}} for submission metadata
  • {{fieldName}} for any field your form posts (for example {{name}}, {{email}})
  • {{#if fieldName}}...{{/if}} to render a block only when that field is present
<p>Hi {{name}},</p>
<p>
  Thanks for reaching out. We got your message and will reply within one
  business day.
</p>
{{#if company}}
<p>Noted that you're writing on behalf of {{company}}.</p>
{{/if}}
<p>— The team</p>

You don't have to tell OSForms which field holds the submitter's address. It auto-detects common field names (email, user_email, contactEmail, and similar) and replies there. If your field has an unusual name, set it explicitly in the auto-reply settings. If no valid email is found, the auto-reply is skipped, and the notification still sends.

Debugging Delivery With Per-Send Logs

Email silently failing is the worst failure mode, so every send is logged. For each submission, OSForms records an integration log with the result of every integration that ran: success, or the exact error message Resend returned.

That means you can answer "did the email actually go out?" without guessing:

  • Submission stored first. The endpoint stores the submission and returns 200 OK immediately, then fires integrations in the background via waitUntil(). Your visitor never waits on Resend.
  • Each send logged independently. The notification and the auto-reply run and log separately, so a skipped auto-reply (say, no email field in the submission) never hides a successful notification.
  • Failures surface. If a send fails, you get an in-app notification with the error so you can fix the key and move on. Nothing is lost, because the submission is already saved.

When to Call Resend Directly Instead

A form backend is the right tool when the form is courier work: store the submission, notify someone, reply to the sender. Call the Resend API from your own code instead when:

  • You already run a server for this form. If submitting it creates a user, charges a card, or writes to your own database, the email belongs in that same request handler. Adding a second service in the path buys you nothing.
  • The email depends on your own data. OSForms templates can use the submitted fields and a few submission details ({{formName}}, {{submittedAt}}, {{submissionId}}). If the reply needs an order status, an account name, or anything else from your database, send it from your code.
  • You want React Email components or attachments. The auto-reply here is an HTML string with {{field}} variables and {{#if}} blocks. Richer templating is easier with the Resend SDK in your own app.
  • You need more than 100 hosted submissions a month and won't self-host. That's the hosted free tier's limit today, and there's no paid hosted plan yet.

For everything else, the endpoint is the server code you'd otherwise write. The hosted tier meters submission volume, not integrations, so email (notifications and auto-reply) costs nothing extra. The code is open source on GitHub, so you can audit exactly how your key is stored, encrypted, and used. For the reasoning behind the model, read what bring your own key actually means.

FAQ

Frequently Asked Questions

01

Does this work with React and Next.js, not just plain HTML?

Yes. Use the standard HTML form tag in any framework, or POST JSON via fetch or axios. OSForms handles both application/x-www-form-urlencoded and application/json content types.

02

What happens if Resend is down when a submission arrives?

The submission is stored immediately regardless. If the Resend call fails, you get an in-app notification in the OSForms dashboard with the error so you can review the submission manually.

03

Can I send notifications to multiple email addresses?

Yes. One email integration takes a list of recipient addresses in its To field, and every address gets the notification. Each form has one email integration, so add all recipients there, or send to a distribution list you manage.

04

How does the auto-reply know where to send?

It auto-detects common email field names in the submission (email, user_email, contactEmail, and similar) and replies to that address. If your field has an unusual name, set it explicitly in the auto-reply settings. If no valid email is found, the auto-reply is skipped and the notification still sends.

05

What is the difference between OSForms and using Resend directly?

Resend requires server-side code to make the API call. OSForms is that server code. You point your HTML form at an endpoint and get submission storage, integration logs, and spam protection with zero backend work on your side.

Continue reading

Own your form backend

Bring your own API keys. 100 free submissions a month, every integration included, no lock-in.

Open source (MIT). Self-host it if you prefer.

tutorialresendemailcontact form