Going public soon.Companies on the waitlist are onboarded first.Join the waitlist

Engineering noteOctober 8, 20265 min read

How render review works

Before any test, every version of a personalised email is rendered with the real engine and must come back with zero errors. What that catches, and what it cannot.

The decision

Before a test is sent or a send is scheduled, every branch of the email is rendered by the real engine, and every one must come back with zero errors.

The failure it prevents

A personalised email that renders fine for you and silently fails to deliver to a group of customers, who simply get nothing.

The mechanism in three steps

  1. Try every branch

    Each condition in the email is rendered with and without its data.

  2. Zero errors

    One failing branch blocks the test and the approval.

  3. A real test

    Only then does a test go to the approver from each sender.

The decision

A personalised email is not one email. It is a template with conditions in it: a line that appears only if the reader has a certain attribute, a different paragraph for people who have bought before, a fallback for people we know little about. Each combination is a branch, and each branch is a different email.

So before Aisha sends a test or schedules a send, she renders every branch with the email platform's real rendering engine, using sample profiles, and she requires every one to come back with zero errors. This is render review. No test can be built and nothing can be scheduled until a clean review is on record. The rule came from the company's owner as a standing instruction, and it is not a setting anyone can switch off.

The failure it prevents

The email platform we use, Customer.io, renders each message strictly for each recipient. If a template refers to a value that is missing for someone, the render fails for that person. The platform does not send a broken version. It sends nothing. The recipient never learns an email was meant for them, and the only trace is a failed status in a log that nobody is watching on launch day.

You can send yourself a test of that email and it will look perfect, because your profile is complete and takes the happy branch. The people who take the other branch are the ones who get nothing. By the time anyone notices, the launch is over.

There is a second trap. Attribute values are stored as text, so the word "false" is still a value, and a condition that tests for it can pass when you expected it to fail. A render with no errors does not prove the logic is right. We return to that below.

How the review is built

The review has three steps, and the first is the one that matters.

Find the branches. She reads the template and finds every condition: each if, each else-if, each unless. For each one she builds two sample profiles, one with the attribute set and one without it, so both the main path and the fallback get rendered. She also fills in every value the template prints, so an output line is never tested with a blank.

Render each one. Each profile goes to the platform's preview call, which uses the same engine that will deliver the email. It returns the rendered email and a list of errors for each field: subject, preheader and body. A clean render has an empty list. Any entry at all means that branch would have failed for a real person. One detail is easy to get wrong: the profile values must be nested under a customer key, or the preview quietly renders them blank. So the review checks that the values arrived, as well as that no error came back.

Record and gate. Each result is saved against the sending account and a fingerprint of the content. The fingerprint is why a change matters. If the copy changes, the fingerprint changes, the earlier review no longer applies and a new one is needed. If the same copy goes out from several regional senders, they share one review, because they render the same way.

Then comes the gate. The code that builds a test send asks for a clean review first and refuses to build the test without one. The code that schedules a send asks the same question. Nobody has to remember to run the review, because the path to a test and the path to a schedule both go through it.

What happens after it passes

Only once the review is clean does a test go out. It is the email platform's own test send, not a copy we assemble ourselves, so the test arrives with the real sender, the real preheader, the topic-specific unsubscribe link and the tracking parameters. The platform refuses the test if the stored template fails to render. It goes to the person who asked from every sending address that will be used, not just one.

Then, for a first send to a new audience, a named person says yes once. That yes is tied to the content and the audience, so a later edit voids it and the order starts again: review, test, yes. A change of time alone does not void it, because the copy is the same and a test checks the copy. A repeat of a send already agreed goes through the same review and tests, and needs no one.

Then the send is scheduled at least fifteen minutes ahead, never "now", so there is always a window to stop it. Large sends can start with a small first wave, a canary send, so a problem shows up small.

What it does not catch

Render review proves one thing: that every branch renders without an error. It does not prove the email is good. It cannot tell you that the subject line is weak, that a paragraph reads oddly in one branch or that the offer is wrong.

It does not prove the audience is right, either. A branch can render cleanly and still never be reached by anyone on the list, or be reached by many more people than you expected. Comparing the branches with who is actually in the audience is a separate question. For a first send, a person should look at it before saying yes, and render review does not do it for them.

And it works on sample profiles. We build them from real profiles where we can, but a sample can miss a combination that real data has. When that happens the cost is small and visible: a recipient gets nothing, and the delivery log shows the failure. A person reads it, fixes the branch, and the next review covers it. This is not a guarantee. It is a gate that closes the largest hole.

Why we made it hard to skip

A rule that depends on someone remembering it fails on the busy day. So the rule is in the code, not only in a document. Both the test path and the scheduling path call the same check, and neither can be built around it.

The scheduler that enforces it has automated tests for exactly these properties, among them that a test send cannot be built without a review and that a send is refused when a branch was never rendered. A test count is not a measure of quality. These tests are the rule written as checks that run before any change to the scheduler ships.

If you want to see where this sits in the whole send, the content lock page explains how a yes to a first send is locked, and the scheduling action lists every rail in order.