Preview helps verify a notification before enabling it.
From a saved notification:
Or open:
/admin/super-mailer/notifications/123/previewPass an id query parameter. Super Mailer tries to find a matching element for the selected event and use it for preview.
/admin/super-mailer/notifications/123/preview?id=456The preview page shows:
Template variables show what Twig templates can use. Availability depends on the selected event and element type. Do not assume every notification has the same event properties.
event.element
event.getElement()
event.dataRaw context is the serialized queue payload. It is useful for debugging logs and resends, but templates should generally use event.
Condition debug shows each configured condition row with:
This makes negated rows easier to read, for example does not contain can pass when the actual value is not in the expected list.
Use Test Send to send the currently previewed notification to one email address.
Test sends:
If an HTML or plain text template fails to render, the preview page shows the error near that body section. The email log will also store failures that happen during queued sends.