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.
// 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
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
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
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
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.
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.
<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
Get your form address in a minute
14 days free, no card. Then €1 per form a month, €0.50 from the 11th form.