Resources

Transactional or marketing email: which messages your app should send itself

Transactional or marketing email: which messages your app should send itself

Your app should send transactional email itself and hand marketing email to a dedicated platform. Transactional messages exist because the user did something: a password reset, an order confirmation, a shipping notice, a receipt. Marketing messages exist because the business wants something: a welcome series, an abandoned cart reminder, a seasonal sale. Both can technically leave the same codebase, and early in a project it is tempting to do that, but the second kind changes constantly in content, timing and audience, and that pace suits a marketing team working in its own tool far better than a developer shipping template changes through a release cycle.

What is the difference between transactional and marketing email?

The test is simple. If the user would be confused or harmed by not receiving the message, it is transactional. A missing password reset locks someone out, and a missing order confirmation sends them to support. These messages belong in the app, close to the events that trigger them, and they should keep working even when the user has unsubscribed from everything else.

If the message exists to sell, inform or re-engage, it is marketing. Welcome series, cart reminders and seasonal sales, the staples of most email marketing campaigns, sit on this side. The user can opt out, the message needs an unsubscribe mechanism, and it is judged on clicks and revenue as well as delivery. Mixing the two in one email, such as a receipt stuffed with promotions, blurs the line and can push the whole message into the marketing category.

Which messages should the app send itself?

Table sorting email types: password reset, order confirmation, shipping notice and receipt stay in the app; welcome series, cart reminder, sale and win-back go to a marketing platform

Use the reason for sending as the sorting rule. Messages triggered by a user’s own action or by a change in their order or account stay in the codebase. Messages triggered by a business goal go to the marketing platform. Teams scoping a new product can settle this boundary before the first sprint, and the decision also shapes which sending service to buy. Our comparison of transactional email platforms for startups covers the app side, and the guide on how to evaluate email APIs covers the checks to run first.

Why do mailbox providers want the two streams kept apart?

Two email streams: transactional mail sent by the app and marketing mail sent through a platform, each with its own sending reputation

Mailbox providers have turned the split into a practical requirement. The Yahoo Sender Hub best practices ask senders not to send bulk and marketing email from the IP addresses they use for transactional mail and alerts. They recommend separating email types by IP or by DKIM domain, because each IP and DKIM domain builds its own reputation. A promotional campaign that draws complaints should not drag password resets into the spam folder with it. For how that reputation works, see how IP reputation impacts system security.

The same guidance sets a ceiling: spam complaint rates below 0.3% for all senders. Bulk senders also need SPF and DKIM in place, along with a published DMARC policy of at least p=none that passes. None of this is hard, but it is easier to get right once, in a platform built for marketing volume, than to rebuild inside a custom mail service. If you need help with the DNS side, read about why a DMARC service matters.

How does the app feed events to the campaign tool?

A marketing platform still needs to know what users do, and that information comes from the app as events: account created, item added to cart, checkout started, order placed, subscription cancelled. The cleanest design sends those events to the platform through its API or an official integration, with a consistent customer identifier on every call. The marketing team then builds the logic on their side: wait an hour after a cart is abandoned, check that no order arrived, send the reminder. Developers define the events once and stay out of the campaign calendar.

The same pattern applies to nonprofit platforms using donation software. A completed donation, recurring contribution or cancelled pledge can each trigger a different workflow. Donation receipts and payment confirmations remain transactional, while fundraising appeals and donor re-engagement campaigns belong in the marketing stream.

Two details save trouble later:

  • Send the event even when the user has not consented to marketing, and let the platform decide whether to act, since consent can change after the event is recorded.
  • Put the values the email needs, such as product names, prices and image URLs, in the event payload, so the platform never has to call back into the app at send time.

How does one-click unsubscribe work?

Marketing email now needs an unsubscribe option that mail apps can trigger directly. Yahoo asks bulk senders for a working List-Unsubscribe header that supports one-click unsubscribing, a visible unsubscribe link in the body, and requests honored within two days. The mechanism is defined in RFC 8058, Signaling One-Click Functionality for List Email Headers: a List-Unsubscribe-Post header carrying List-Unsubscribe=One-Click tells the mailbox provider it can send the request in the background, with no confirmation page.

Most marketing platforms add these headers to campaigns automatically. A custom mail service has to build the endpoint, handle the POST request and write the result back to the user record. It also has to cope with edge cases: a request that arrives twice, a user who unsubscribes from marketing and then places an order the same afternoon, a token that expires before the mailbox provider sends it. Each is a small task, but together they turn a weekend feature into a service your team owns for the life of the product. Related setup work such as SPF record tools belongs on the same checklist.

Frequently asked questions

Can I send both kinds from one provider?

Yes, many providers offer both. Keep the streams separate by IP or sending domain, and make sure the marketing side has proper unsubscribe handling.

Is an order confirmation with a discount code still transactional?

Adding promotions blurs the line, and a message that carries a lot of marketing content can be treated as marketing. Keep the transactional message plain and send the offer separately.

Do transactional emails need an unsubscribe link?

Typically not, since they are triggered by the user’s own actions. They should still reach the user after a marketing opt-out, which is why they live in a separate stream.

When should I move marketing email out of the app?

Ideally before launch. Moving later means migrating lists and consent records while campaigns are already running, and untangling a shared sending reputation.

What should you decide before the first sprint?

Write three lists: which messages stay in the codebase, which events the app will emit, and which marketing platform will receive them. Doing it now saves a migration later, when the marketing team is already sending campaigns and the transactional stream is sharing their reputation.

Bogdan Sandu

Stay sharp. Ship better code.

Every week: one curated article, one tool worth knowing, one tip you can use tomorrow. No noise, no padding.