Falkenstein, Germany · Hetzner Online GmbH
FormHaven

EmailJS not working? Check these first

Most EmailJS forms that send nothing hit one of four causes, all in EmailJS's own documentation, read on 12 November 2026. Here is each one with its fix, and a two-minute switch if you would rather move the form.

Moving instead? 14 days free, no card.

contact.js
// Log the reason instead of failing silently
try {
  await emailjs.sendForm('YOUR_SERVICE_ID', 'YOUR_TEMPLATE_ID', '#myForm');
} catch (error) {
  console.log(error.status, error.text);
}

Check these four things

  1. 1

    Check the monthly quota

    The free plan allows 200 requests a month. Once an account reaches 100%, EmailJS drops every further request. It sends a notification at 80%, 95% and 100%, so look for those first.

  2. 2

    Match template variables to field names

    A variable like {{message}} is filled from the value named message. A variable with no matching value is replaced by an empty string, so a field named msg leaves {{message}} blank.

  3. 3

    Add every domain to the allowlist

    If you set allowed domains under Domains in the dashboard, EmailJS checks the address the request comes from. Add the live domain, the www version and any preview address you test on.

  4. 4

    Test the mail service

    EmailJS sends through the account you connect. It warns that a personal account such as Gmail or Outlook 365 can be blocked past the provider's daily limit, and recommends personal accounts only for development or very low volume. Press Test on the service in the dashboard.

If you send from a server

EmailJS's Node.js SDK says API requests from non-browser applications are disabled by default. Turn them on under Account, then Security, in the dashboard. Keep to one request a second: that is the rate limit in its API docs.

Node.js
import emailjs from '@emailjs/nodejs';
// Fails until Account > Security allows non-browser requests
await emailjs.send('YOUR_SERVICE_ID', 'YOUR_TEMPLATE_ID', params, options);

Or move the form in two minutes

Keep your form and its inputs. Put your FormHaven address in the action, replace the sendForm call with one fetch, and remove the EmailJS script and keys. Every named field appears in the email we send you, messages are stored in the EU for as long as you choose, and spam is filtered without a captcha.

contact.js
<form id="myForm" action="https://formhaven.net/f/YOUR_FORM_ID" method="POST">
  <input type="email" name="email" required>
  <textarea name="message" required></textarea>
  <input type="text" name="_gotcha" style="display:none">
  <button type="submit">Send</button>
</form>

Questions about this setup

EmailJS says the email was sent, but nobody got it. Why?
On the Professional plan and above, an address that unsubscribed from a template goes on the suppressions list. EmailJS then skips it and still reports the request as successful. Check Suppressions and Email History in the dashboard.
What does a 422 error mean?
EmailJS's API docs give 422 as "The recipients address is corrupted". Check the To field in the template and the variable that fills it.
How does EmailJS compare with FormHaven?
EmailJS sends an email from the browser through a mail account you connect. FormHaven receives each message, stores it in the EU for as long as you set and emails it to you, with no keys in your code. The FormHaven vs EmailJS page, linked below, has prices, limits and sources.
Can my client get the messages too?
In FormHaven, add up to 5 more addresses to the form. Each one confirms by a link first, and their copy carries no FormHaven branding.

More to read

FormHaven vs EmailJSPrices, limits and the switch, with sources Astro contact formA Contact.astro component for a static Astro site HTML form to emailOne line in the action, every message in your inbox Static site contact formOne form for Astro, Hugo, Eleventy, Jekyll or plain HTML Hugo contact formA partial and a shortcode for a static Hugo site Lovable contact formOne prompt for a site built with Lovable GDPR compliant contact formEU storage, a DPA and retention you set Kontaktformular nach DSGVOAuf Deutsch: gespeichert in Deutschland, mit AVV JavaScript contact formA fetch script that keeps the visitor on the page Vercel contact formFor plain HTML, Astro or Next.js hosted on Vercel FormSubmit not workingThe usual causes of a silent FormSubmit form Web3Forms not workingThe usual causes of a silent Web3Forms form Eleventy contact formAn include for a static Eleventy (11ty) site Formspree not workingThe usual causes of a silent Formspree form Export from FormspreeEvery Formspree submission, as a file Export from FormsparkEvery Formspark submission, as a file Form backend for AI agentsThe start request, every REST route and MCP tool Claude Code contact formOne prompt, then press Activate Cursor contact formThe prompt and the .cursor/mcp.json entry Contact form privacy policyThe paragraph to copy, in 8 languages GitHub Pages contact formFor user, organisation and project sites on github.io Cloudflare Pages contact formFor sites on pages.dev or your own domain Netlify contact formFor sites on netlify.app or your own domain React contact formOne component for Vite and other React apps Next.js contact formA client component that works with output: export Send form submissions to multiple emailsUp to 5 confirmed addresses per form, plus yours SvelteKit contact formOne Svelte 5 component, any adapter Nuxt contact formOne Vue component for Nuxt 4 and 3 Gatsby contact formOne component for a Gatsby 5 site HTML form webhookSigned JSON to your endpoint for every message Jekyll contact formAn include for Jekyll, on GitHub Pages or any host Angular contact formA standalone component that posts with HttpClient Contact form spamWhy forms get spam, and the layers that stop it Contact form honeypotThe hidden field that catches bots, and how to hide it Contact form without PHPFor hosts with no PHP, or mail() that lands in spam HTML form mailtoWhy action="mailto:" fails on webmail visitors, and the one-line fix Contact form templateThe same form in plain HTML Pricing€1 per form a month, €0.50 from the 11th

Get your form address in a minute

14 days free, no card. Then €1 per form a month, €0.50 from the 11th form.

Start your 14-day trial