{% set m, contact, campaign = d.m, d.contact, d.campaign %}
{{ contact.name }} · {{ contact.role or "role unknown" }}{% if contact.company %} at {{ contact.company }}{% endif %}
{% if campaign %}{{ campaign.name }}{% endif %} {{ "First email" if m.step == 0 else "Follow-up " ~ m.step }} {% if m.status == "approved" %}Approved {% elif m.status == "rejected" %}Discarded {% elif m.status == "failed" %}Draft failed{% endif %}
{% if error %}
{{ error }}
{% endif %} {% if m.status in ("draft", "failed") %} {% if m.error %}
{{ m.error }}
{% endif %} {% if m.flags %}
Check before sending
{% elif m.status == "draft" %}

✓ Passed the guardrail checks

{% endif %}
{% elif m.status == "approved" %}

Subject: {{ m.subject }}

Queued. It sends on the next run inside the send window.

{% else %}

{{ m.error or "Discarded. This contact's sequence is stopped." }}

{% endif %}