How a website usually sends email
Most websites send email in one of two ways. The simple way is the web server's own mail function, which many CMS platforms and form plugins use by default. The server hands the message straight to the recipient's mail service, from an IP address that is shared with other sites and that the domain has never declared as a sender. The better way is to send through a dedicated email service, over an API or authenticated SMTP, with the domain's keys and records in place. The first way often works in testing and then fails quietly as the large mail services tighten their rules, which is why the problem tends to appear suddenly on a site that has not been changed.
The most common cause: the visitor's address as sender
Many contact forms put the visitor's own email address in the From field, so that a reply goes straight to them. To the recipient's mail service this looks exactly like forgery: a message claiming to come from a private address at a large provider, sent from a web server that has nothing to do with that provider. With DMARC in force at the visitor's provider, the message is marked as spam or rejected outright. The fix is to always send from an address on your own domain, such as noreply@ or forms@, and put the visitor's address in the Reply-To field. Replying still works as before, and the message passes the checks.
SPF, DKIM and DMARC must match the sending service
The receiving service checks three things. SPF says which servers may send for the domain, DKIM signs each message with a key published in DNS, and DMARC says what should happen when the checks fail and requires the domain in the From address to match the domain that passed SPF or DKIM. A website that sends through an email service needs that service in the SPF record and its DKIM key published, otherwise the domain is not aligned and DMARC fails even though each part exists. How the three records are set up, in which order, is described in the guide to SPF, DKIM and DMARC.
A subdomain for mail the website sends
Mail from the website is a different kind of mail from what employees send. Placing it on a subdomain, such as mail.yourcompany.com, keeps the two apart. The subdomain gets its own SPF and DKIM records, its reputation is built from order confirmations and form messages only, and a misconfigured plugin cannot damage the reputation of the main domain that staff use every day. The visible sender can still read as your company, and replies go where the Reply-To field points. It also makes it easier to see in the DMARC reports which mail comes from the website and which comes from the office.
Content and volume matter less, but still matter
Once authentication is in place, content plays a smaller part, but some patterns still raise suspicion. A message that is only an image, links through URL shorteners, a link text that shows one address while the link goes to another, and a subject line in capitals all count against it. Order confirmations should contain plain text alongside any HTML version and make clear who the sender is and why the mail was sent. Volume matters for new domains: a domain that has never sent and suddenly sends thousands of messages after a campaign looks like a spammer, so new sending domains should start small and grow over a few weeks.
Bounces, complaints and lists that grow old
Every address that bounces or every recipient who marks a message as spam lowers the sender's reputation. A website that keeps sending to addresses that no longer exist, for example old customer accounts, loses trust with each attempt. A proper email service reports bounces and complaints back, and the website should stop sending to those addresses. Since 2024, Gmail and Yahoo require large senders to keep complaints well below 0.3 percent and to offer one-click unsubscribe on marketing mail. Transactional mail such as order confirmations is not marketing, but it is judged by the same reputation, so the two should not be mixed in one stream.
Test the fix and keep it working
Send a test from each form and each order flow to addresses at the large mail services, open the message and look at the headers: spf=pass, dkim=pass and dmarc=pass should all appear, with your own domain. Check again after every change of email service, plugin or hosting, since a move often loses a DKIM key or an SPF entry. The DMARC reports that arrive every day show whether any of the domain's mail is failing, and records that change without anyone noticing can be caught by monitoring domains, DNS and SSL. For online shops, reliable order mail is part of the work described under e-commerce, and ongoing care of mail and DNS is covered under support and operations.