Marketing vs. transactional email

PostHog sorts every email into one of two streams: marketing or transactional. The stream decides which rules apply to the email: whether it respects opt-outs, whether it waits for your allowance, and what the suppression list blocks. This page explains what defines each stream, and why PostHog treats them so differently.

What defines each stream

Transactional email is a message that a person needs because of something they did, or something that happened to their account. They expect it, and often wait for it.

  • Password resets, sign-in codes, and magic links
  • Receipts and invoices
  • Security alerts, such as a sign-in from a new device
  • Account notices, such as a failed payment

Marketing email is everything that promotes your product, or keeps people engaged with it. People can live without it, and they must be able to stop it.

  • Newsletters and product announcements
  • Onboarding and lifecycle nudges, such as "You haven't tried dashboards yet"
  • Offers, upgrade prompts, and win-back campaigns
  • Broadcasts to a cohort

A useful test: if the person turned off all of your email, would they still need this one to use your product? If yes, it is transactional. If no, it is marketing.

Why the classification matters

The test matters because transactional email skips the protections that people rely on to control their inbox. Laws such as CAN-SPAM in the US and GDPR in the EU require a way to opt out of commercial email. A promotional email labeled as transactional gives the person no working way to stop it. In most places, that breaks the law.

It also hurts your deliverability. A person who can't unsubscribe clicks "Report spam" instead. Those complaints count against your domain, and they land on the stream that your password resets use.

How PostHog treats each stream

MarketingTransactional
Opt-outs and preferences pageRespected. People who opted out are skipped.Ignored, because people need these emails.
List-Unsubscribe and List-Unsubscribe-Post headersAdded, so mailbox providers show their own Unsubscribe button.Left out.
Suppression listAny entry blocks it.Only a hard bounce (or an API suppression with reason bounce) blocks it.
Frequency capCounts toward the cap, and is capped (except code sends with a marketing category, which skip the cap).Never counts, and is never capped.
Daily sending allowanceUses allowance. Waits in the queue when the allowance is empty.Uses allowance, but never waits for it.
Queue priorityBulk lane.Fast lane, ahead of all queued marketing email.
Tracking and contentOpen and click tracking on by default.The same, unless you mark the email as sensitive. A sensitive email has click tracking off by default, and PostHog keeps no copy of its subject or body.

Each difference follows from what the stream is for:

  • Opt-outs and headers. A person must be able to stop marketing email. They can't stop their own receipts or reset links, or the product stops working for them.
  • Suppression. A complaint or a manual entry says that the person does not want your marketing. Only a hard bounce proves that the address can't receive any email, so only a hard bounce stops transactional email. See how bounces, complaints, and suppressions work.
  • Allowance and priority. A password reset that arrives two hours late has already failed. Pacing it protects nothing, so transactional email goes out at once. It still uses up allowance, so a project that sends mostly transactional email has less room left for marketing. See how PostHog delivers messages reliably.

Transactional email still shares your project's sending record. Its bounces and complaints count in your rates, and when sending is suspended for the project, transactional email stops too.

Where the classification lives

You decide the stream in one place for each kind of email:

  • Broadcasts and automation email steps take a message category. Each category has a message type: Marketing or Transactional. A transactional category puts that broadcast or automation email in the fast lane and skips opt-outs and the frequency cap. An email with no category counts as marketing for queue priority and allowance.
  • Transactional email templates and emails sent from code through the transactional email API are transactional by default. Where enabled, an email whose content you send from code (subject with html or text) can pass a marketing category so it follows marketing opt-outs, suppression, queue lane, and allowance rules (while skipping the frequency cap). A send that uses template_id ignores any category on the request and uses the template's own category.

The category is your declaration. PostHog trusts it, so the responsibility to use it correctly stays with you. Use transactional only for email that passes the test above.

Separate the streams as you grow

At low volume, one domain and one project work well for both streams. As your volume grows, a marketing complaint spike can do more harm, so separate the streams further:

  1. Use a transactional category for every email that people need. This gives those emails the fast lane and the exemptions above.
  2. Send each stream from its own subdomain, such as news.example.com for marketing and account.example.com for transactional. A marketing complaint spike then lands mostly on the marketing subdomain.
  3. Send each stream from its own project. Each project gets its own tier, allowance, and Amazon SES tenant, so a suspension of one stream does not stop the other.

For why subdomains help, see how email reputation and deliverability work.

Still have questions?

Was this page useful?