Skip to content

Why Your App's Emails Go to Spam

6 min read

A cheerful pixel-art yellow envelope standing between an open coral trash bin and a round coral shield on a green platform under a blue sky.

If you're asking "why are my emails going to spam" about the mail your app sends, the cause is usually one of these: missing authentication, a domain with no sending history, links that look like phishing, too many bounces and complaints, or promotional content mixed into account mail. Each one has a fix you can make in an afternoon.

Password resets and receipts get filtered for the same reasons as newsletters. The inbox provider doesn't know your mail is transactional. It sees a sender, a domain, the content and how recipients react, and it decides from those. We checked the Gmail and Yahoo sender rules quoted below on their own pages in November 2026.

Find Out Why One Email Went to Spam

Send a message to a Gmail account you own, open it, and choose Show original from the three-dot menu. Gmail prints three lines at the top: SPF, DKIM and DMARC, each with PASS or FAIL. Below them, the Authentication-Results header names the domain each check used.

Read those lines before you change anything. A FAIL tells you to fix DNS. Three passes and a landing in spam point to reputation or content, so skip ahead to those sections.

Outlook and Yahoo show the same header under View message source or View raw message. A mail tester that scores a message is useful too, but the header from a real inbox is the better evidence.

Missing or Broken Authentication

Gmail's sender guidelines require every sender to set up SPF or DKIM. Anyone sending more than 5,000 messages a day to Gmail must set up both, plus a DMARC record, and the From domain has to match the domain SPF or DKIM checked. Yahoo asks for the same: SPF or DKIM from everyone, and SPF, DKIM and a DMARC policy of at least p=none from bulk senders.

The common failures in app mail:

  • No DKIM record, so the message is signed by your provider's domain, not yours, and DMARC alignment fails.
  • Two SPF TXT records on one name. A name may hold exactly one, and a second one makes SPF fail for both.
  • An SPF record with more than 10 DNS lookups once every include is counted. It returns a permanent error and counts as no SPF at all.
  • A DMARC record at p=reject while one of your senders (a CRM, a helpdesk) still fails alignment.

Send app mail from a subdomain such as mail.yourapp.com. It gets its own SPF record, so the record your company inbox uses stays untouched, and a problem on one name doesn't spill onto the other. Our guide to sending transactional mail from a subdomain covers the DNS, and the SPF, DKIM and DMARC setup guide shows each record.

A New Domain With No Sending History

A domain registered last week that sends 2,000 emails on its first day looks like a spammer's domain, because that is the pattern spammers use. Gmail's guidelines say to start with a low volume to engaged recipients, increase it slowly, and avoid sudden spikes.

For an app that means:

  • Verify the domain and send real mail on it before launch day, starting with your own team and early users.
  • Don't import an old user list and email all of it on day one.
  • Keep a steady rate. A nightly batch job that sends 30,000 digests in five minutes reads worse than the same mail spread over an hour.

Filters also look at the parent domain, so mail.yourapp.com on a domain you've used for years starts ahead of a domain bought last week.

Filters read every link, and a few habits in app templates trip them.

Public link shorteners hide the destination, and spammers use the same shortener domains, so those domains carry a poor reputation that your message inherits. Link straight to your own domain.

Link text that names one site while the href points to another is a phishing pattern. If the button says yourapp.com/reset, the link should go to yourapp.com/reset. Gmail's guidelines say links in the body should be visible and easy to understand.

Raw IP addresses and localhost links in production mail look broken at best. They usually come from a staging config that leaked into a template, so check the base URL your app uses when it builds links.

Click tracking rewrites every link through a tracking domain. Turn it off for password resets and sign-in links: the recipient sees the real URL, and a one-time link isn't something you need click data on.

Bounces and Spam Complaints

Gmail and Yahoo both say to keep the spam complaint rate below 0.3%, and Gmail's monitoring advice sets the target lower, under 0.1%. That is one complaint per 1,000 messages. A few dozen complaints on a small app can be enough.

App mail collects complaints in ways people don't expect:

  • A user who forgot signing up marks the welcome email as spam.
  • Notification emails with no setting to turn them off get reported, because the spam button is the only off switch.
  • Mail goes to addresses nobody checked at sign-up. Typos bounce, and abandoned addresses can be spam traps.

Fixes: verify the address at sign-up with a code or link, give every notification type an off switch in your settings page, and stop sending to an address after it hard-bounces or complains. Mailfully suppresses an address automatically after a hard bounce or a spam complaint, so a send to it is canceled and you aren't charged for it. Listen for the email.bounced and email.complained webhook events so your app can flag the account and ask the user for a new address.

Marketing Content Inside Transactional Mail

A receipt with a discount banner and three product picks is a promotion as far as the filter is concerned. Gmail's guidelines say not to mix content types in one message, and to use one From address per category of mail.

Keep receipts, resets and alerts free of promotions. Send them from an address like notifications@mail.yourapp.com, and send newsletters from a different address. If you send marketing mail, Gmail and Yahoo also require a one-click unsubscribe header and a visible unsubscribe link for bulk senders. Transactional mail doesn't need either.

Why Are My Emails Going to Spam When Everything Passes?

If SPF, DKIM and DMARC all pass, the domain has history and complaints are low, look at the message itself:

  • Send a plain-text part as well as the HTML. A message with only an image, or with HTML and no text part, is a weak signal against you.
  • Use a real From name and an address that can receive replies. noreply@ isn't penalized on its own, but a reply that bounces tells the user nobody is there.
  • Keep the subject plain. "Your password reset code" passes; "URGENT: act now!!!" looks like spam to the filter and to the reader.
  • Don't hide text with CSS or set text in the background color. Gmail's guidelines tell senders not to hide content with HTML and CSS.

A Send That Follows These Rules

Here is a password reset through the Mailfully API that follows the advice above: a subdomain sender, a reply address, an HTML part and a text part, a link to your own domain, and no promotions.

js
const res = await fetch("https://api.mailfully.com/v1/emails", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MAILFULLY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    from: "Acme <notifications@mail.acme.com>",
    to: "user@example.com",
    reply_to: "support@acme.com",
    subject: "Reset your Acme password",
    html: '<p>Reset your password with this link. It expires in 30 minutes.</p><p><a href="https://acme.com/reset?token=abc123">https://acme.com/reset?token=abc123</a></p>',
    text: "Reset your password with this link. It expires in 30 minutes.\n\nhttps://acme.com/reset?token=abc123",
  }),
});

const { id, status } = await res.json();
// status is "queued", or "canceled" if the address was suppressed after a bounce or complaint

Test your bounce and complaint handling before you send real mail. With a test key (mf_test_), a message to bounce@example.com simulates a hard bounce and one to complaint@example.com simulates a spam complaint. They go through the same sending pipeline as live mail, so you can watch the status change to bounced or complained, and test mail is never billed. The quickstart walks through the first send.

What Mailfully Costs

Mailfully's free plan includes 3,000 emails a month and up to three sending domains, and the dashboard lists the DKIM and SPF records to add for each one. Paid plans start at $5 a month for 10,000 emails. The pricing page lists every plan.

Try Mailfully free at mailfully.com.

Mailfully is a transactional email API for developers. Your app sends receipts, password resets and sign-in links with one API call, and can receive email by webhook. 3,000 emails a month are free, and paid plans start at $5. Start free.

See pricingRead the quickstart