Why contact form emails go to spam, and how to fix it.

Contact form emails usually land in spam because they claim to come from the visitor’s address, are sent by a server without SPF and DKIM, or arrive mixed with forwarded spam. Send from an authenticated address with Reply-To set to the visitor, and filter spam before it’s emailed.

A contact form that works perfectly can still lose you leads if its emails land in the spam folder, where nobody looks. It’s a common problem and a quiet one: nothing breaks, the visitor sees a thank-you page, and the enquiry sits unread for weeks. The causes are well understood, and most of them are fixed once, in the way the form sends its email.

Why do contact form emails land in spam?

Mail providers such as Gmail and Microsoft decide where a message goes by checking two things: whether the sender is who it claims to be, and whether the message looks like the spam they see every day. Form notifications often fail both, for a handful of reasons:

  • The “From” address is the visitor’s. Many form scripts put the visitor’s email in the From line so you can hit Reply. But your server isn’t allowed to send mail for gmail.com or yahoo.com, so the message fails the checks below.
  • The server sending it isn’t authenticated. Mail sent straight from a web server, for example through PHP’s built-in mail function, often has no SPF or DKIM records behind it.
  • The content looks like spam, usually because spam submissions are being forwarded too: messages full of links, odd characters and sales pitches teach your mail provider that this sender sends junk.
  • Your own rules or filters moved it, or it was filed under a tab such as Promotions or Other.

What are SPF, DKIM and DMARC?

They are three records published in a domain’s DNS that let receiving mail servers check a message is genuine:

  • SPF (Sender Policy Framework) lists the servers allowed to send mail for the domain.
  • DKIM (DomainKeys Identified Mail) adds a cryptographic signature to each message, which the receiver checks against a public key in the domain’s DNS.
  • DMARC (Domain-based Message Authentication, Reporting and Conformance) tells receivers what to do when a message claiming to be from the domain fails those checks: deliver it, send it to spam, or reject it.

Since 2024, Gmail and Yahoo have required every sender to authenticate its mail, and bulk senders to publish all three records. Unauthenticated mail is increasingly filtered or refused outright.

RISKYWeb serverFrom: visitor@gmail.comChecksSPF, DKIM, DMARC failSpam folderRELIABLEForm serviceReply-To: the visitorChecksauthenticated senderInbox
From vs Reply-To. Send from an address you’re allowed to use, and put the visitor in Reply-To.

Why shouldn’t the From address be the visitor’s?

Because it’s spoofing, even when it’s well meant. A message that says it comes from someone@yahoo.com but was sent by your web host fails SPF and DKIM for yahoo.com, and many large mail providers publish strict DMARC policies telling receivers to reject or quarantine exactly that kind of message. The result is a notification that arrives in spam, or never arrives at all.

The fix is simple: send the notification from an address on a domain that is set up to authenticate it, and put the visitor’s address in the Reply-To header. You still press Reply and write straight back to the person who filled in the form, and the message passes the checks.

How do spam submissions make it worse?

If bots fill in your form and every submission is emailed to you, your inbox learns that this sender mostly sends junk. Soon the real enquiries get filtered with it. Stopping spam before it’s emailed protects your genuine leads as much as your patience. The usual tools are a hidden honeypot field that only bots fill in, a rate limit, a spam filter, a captcha if you need one, and a list of the websites allowed to post to your form. Our guide to adding a contact form to a static website covers these in more detail.

What can you fix on the receiving side?

  • Mark a caught notification as “Not spam” and add the sending address to your contacts. Most providers learn from both.
  • Create a filter for the notification’s sender or subject that never sends it to spam.
  • Check the other tabs and folders: Gmail’s Promotions and Updates tabs, Outlook’s Other inbox, and any quarantine your company’s email security uses.
  • Ask your IT provider to allow the sender if your company’s mail filtering keeps catching it.

How do you know a notification went missing?

Test the form from a phone, with an address that isn’t yours, every time you change the website, and once a month otherwise. Send to every recipient the form uses. Better still, don’t let email be the only copy: a form backend that keeps every submission in an inbox you can check means a lost email never means a lost lead.

How FormRelay fits

FormRelay is a form backend for websites, in early access and open for sign-up. As its email notifications page describes, it emails each submission from a FormRelay address, with your form’s name (or your own sender name) on it and Reply-To set to the person who filled in the form, so replying writes straight to them. Sending from your own domain isn’t available yet. It emails only addresses that have confirmed they want the form’s mail, or that belong to your team, and a refused send is tried again; a send that fails for good is listed under Needs attention.

FormRelay's Delivery tab for a contact form: two confirmed email recipients with Reply-To set to the sender, a subject line using the visitor's name, and a sender name for the website.
FormRelay email delivery settings. Demo data; names and figures are made up.

Every form also has FormRelay spam protection from the start: a hidden spam trap, a rate limit and a spam filter, with optional Cloudflare Turnstile, hCaptcha or reCAPTCHA using your own keys. What the filter catches is filed under Spam and never emailed. Every submission is kept in the FormRelay inbox too, for up to 30 days on the free plan. FormRelay is free for 250 submissions a month; Pro is $12 a month and Business is $29.

Your form’s email, in the inbox.

FormRelay is in early access. The free plan covers 250 submissions a month and is open for sign-up now; Pro is $12 a month and Business is $29.