Prosphere

NotesGuides

Contact Form Auto-Reply: What to Write and How to Keep It Out of Spam

What a contact form auto-reply should say, which From and Reply-To to use, how RFC 3834 prevents loops, and how to keep the reply out of spam.

In this post

A contact form auto-reply is a short email that confirms a message arrived, says when the visitor can expect an answer and names who to contact if it is urgent. Send one, keep it plain, and send it from a domain that passes authentication. Two things often go wrong: the reply lands in spam because the sending domain is not set up properly, or it creates a loop because another automatic message answers it. This post covers both, with RFC 3834 and the Google and Yahoo sender guidelines behind it.

The reply is only one part of the flow. The message itself still has to reach the inbox you read, and the form has to refuse spam before it sends anything. The earlier posts on why a contact form email does not arrive and on stopping form spam cover those two steps.

Why send an auto-reply

A visitor who submits a form wants to know that it worked. Without a reply they may submit again, which creates duplicates in your inbox. A confirmation prevents that and sets an expectation: "we reply within two working days" is a promise you can keep, and it is better than silence.

The reply should be short. Its job is to confirm, not to answer the question. If the visitor needs a fast answer, the reply should say where to find one, such as a phone number or a help page, rather than attempting the answer itself.

What to put in the message

A useful auto-reply has four parts:

  • Confirmation. Say which form was received, and quote the subject line so the visitor can recognise it.
  • Timing. State a realistic reply time. Do not promise what your inbox cannot deliver.
  • Next step. Give one action if there is one, such as a link to a page that answers common questions.
  • Contact for urgent matters. One email address or phone number is enough.

Leave out marketing. A confirmation that also asks the visitor to subscribe to a newsletter gets read as marketing, and that changes how filters treat the message. Keep the reply to a few lines and make it match what the visitor just sent.

From and reply-to addresses

Choose the From address with care. A reply that comes from a no-reply address tells the visitor they cannot respond, which often leads them to write again on a different channel. A reply from a personal mailbox, however, can make a visitor reply to a person who did not expect to handle the form. The usual choice is a shared address such as the one the team reads, sent from the same domain as your other mail.

The Reply-To header controls where a visitor's reply goes. Point it at the inbox that is watched. Test it: send a form submission, reply to the auto-reply, and check that the answer reaches the inbox you expect. Note that RFC 3834 says automatic responses should go to the Return-Path address, not to Reply-To, so this header matters for the visitor's answer, not for other automatic systems.

Avoiding loops and auto-responder abuse

An auto-reply loop happens when two automatic systems answer each other. Your form sends a reply, the visitor's mail system or an out-of-office message replies to it, and your system replies again. The standard that prevents this is RFC 3834, which defines the Auto-Submitted header. Its text says that "Automatic responses SHOULD NOT be issued in response to any message which contains an Auto-Submitted header field, where that field has any value other than "no"."

A form submission is not an email, so the loop starts on the visitor's side: their out-of-office reply to your confirmation. Two measures keep it contained. Set Auto-Submitted: auto-replied on your confirmation, which the RFC says "SHOULD be included in the message header of any automatic response"; well-behaved systems then will not answer it. And ignore replies to the confirmation that carry an Auto-Submitted header with any value other than "no", so they never trigger another reply.

The RFC also recommends limiting the number of responses sent to any individual per period of time, and responding to at most one address per incoming message. For a form, that means one confirmation per submission, rate-limited per address. This also stops bots from using your form to send mail to strangers: the address is typed by the visitor, so never echo the message body back.

Test the loop before going live. Submit the form with a reply-to address that auto-responds, and confirm that the exchange stops after one reply.

Deliverability basics

A reply is still an email, and it is judged by the same authentication as any other. Google's sender guidelines say that for all senders, "Set up SPF or DKIM email authentication for your sending domains," and that spam rates should be kept "below 0.3%." Yahoo's sender best practices say the same in a different form: "Implement SPF or DKIM at a minimum," and keep the spam rate "below 0.3%."

The stricter rules in Google's guidance, including DMARC and the requirement that the From domain align with SPF or DKIM, are written for bulk senders of 5,000 messages a day or more. A small site sends far fewer, so those rules do not apply by the letter. They are still the right direction. Set up SPF, DKIM and a DMARC record for the domain that sends the reply. The setup is the same whether you send one reply or a million.

Keep the reply to plain text or simple HTML, with no tracking pixels and no links to unfamiliar domains. A message that contains only the confirmation, one link to your own site and a contact address looks like what it is.

Testing the flow

Run the whole path before you rely on it:

  1. Submit the form with a real address you control, and confirm the reply arrives within a minute.
  2. Check the headers of the reply. Confirm SPF and DKIM pass, and that the Auto-Submitted header is present.
  3. Reply to the confirmation and confirm the answer reaches the watched inbox.
  4. Submit the form twice quickly and confirm each submission gets one reply, not a stream.
  5. Check the reply in a spam folder test or a mailbox you do not normally use.

If any step fails, fix the cause before the form goes live. A reply that never arrives, or arrives in spam, tells the visitor the form does not work, which is worse than having no reply at all.

For how the form, the inbox and the reply fit together, see how Prosphere works. Prosphere is in build, so this post describes the approach, not a feature that is already available.

Sources

Join the waitlist

Join the Prosphere waitlist for a form backend and shared inbox for many websites, or write to info@prosphere.app. One message when it opens.

Waitlist