Explainers

Transactional vs marketing email, and one API for both

How transactional and marketing email differ, what the law and the mailbox providers expect of each, and how one API handles both.

4 min read

In short

  • A transactional email answers something a person just did. A marketing email is one you chose to send.
  • The difference matters to the law and to mailbox providers: marketing needs a way to unsubscribe, a receipt does not.
  • In OpenSend the first is an email you send, and the second is a broadcast to an audience. Both are one API.
  • A broadcast gets its unsubscribe link and its one-click header by itself.
  • A plan counts the two apart, and both are part of every plan.

The difference in one table

Who starts it
Transactional
The person, by doing something
Marketing
You, when you decide
Who gets it
Transactional
That one person
Marketing
Everyone subscribed in an audience
Examples
Transactional
A sign-in code, a receipt, a password reset, a shipping notice
Marketing
A newsletter, a product update, an offer
Expected
Transactional
Yes, within seconds
Marketing
Only by people who asked for it
Unsubscribe
Transactional
Not expected
Marketing
Required

The test is whether the person would be surprised to get it, whatever template or tool sent it. A receipt with a coupon glued under it is a marketing email wearing a receipt.

Why the difference matters

  • The law. In the United States, the CAN-SPAM Act exempts a "transactional or relationship" message from most of its rules, and holds a commercial one to all of them. Other countries draw the line in other places, and most ask for consent before marketing.
  • The mailbox providers. Google asks bulk senders to give marketing and subscribed messages a one-click way to unsubscribe. The header that carries it is defined in RFC 8058.
  • Your reputation. People mark marketing they did not want as spam. Enough of that, and your sign-in codes start landing in spam beside it.

This is a summary, not legal advice. The sources are at the end, and the rules of the countries you send to are yours to check.

How one API handles both

Many teams run two tools for this, one for each kind, with two lists of contacts and two sets of logs. In OpenSend the two are two calls of one API.

What it is
Who gets it
An email
The addresses you name
A broadcast
Every subscribed contact of the audience
Each copy
An email
What you wrote
A broadcast
Filled in for each contact, with their name
Unsubscribe
An email
None is added
A broadcast
A link and a one-click header on every copy
Counted as
An email
Emails sent a month
A broadcast
Marketing emails a month

Both end up in the same logs, with the same statuses and the same events, and both tell the same webhooks. An automation is counted with the emails you send: it answers something a contact did.

Unsubscribing, topics and suppressions

  • A broadcast gets an unsubscribe link at the end when you leave it out, and every copy carries the headers a mail app needs to unsubscribe a reader with one click.
  • Send a broadcast on a topic and its link takes a reader out of that topic, not out of everything.
  • Someone who unsubscribed is left out of every broadcast, in every audience they are in.
  • A suppressed address is something else: one that bounced for good, or whose owner marked your mail as spam. It gets no mail from the workspace at all, transactional included. That list protects your reputation.

Should the two be kept apart?

On the wire, yes. The usual advice is to send marketing from a subdomain of its own, such as news.example.com, and transactional mail from another. Then a bad week for the newsletter does not weigh on the receipts. A workspace takes several domains, so this is a choice of sender and nothing more.

In your tools, no. One list of contacts, one set of logs and one suppression list mean that someone who complained about a newsletter is never written to by a broadcast again, wherever they are listed.

What it means for the bill

Some services price the two apart: email by the number you send, and marketing by the number of contacts you hold. How that adds up at Resend is worked out in another post.

Here a plan has a number for each kind, and both are in every plan. The pricing page has them.

More from the blog

Send your first email in a few minutes.

Create a key and send, or clone the repository and run it yourself.