
Notification
The plain one: a headline, a line of detail, an optional quote and a link.
Asks about one named order or conversation, and only once.

How was {{subjectName}}?
How did we do?
You {{interactionVerb}} {{subjectName}} on {{interactionDate}}. If you have two minutes, we would like to know how it went. It is read by a person, and it changes what we do next.
Leave feedback [{{actionUrl}}]
Would rather not? That is completely fine. This is the only time we will ask about this one.
{{footerNote}}Shown with sample values. The HTML and plain-text tabs keep the placeholders.
About
Send it a few days after an order, a support conversation or a visit. It asks about that one interaction rather than the company in general, says a person reads the answers, and promises not to ask about it again.
Values
Required values have to come with every send. The rest fall back to the default shown here.
| Placeholder | Kind | Required | Default |
|---|---|---|---|
{{subjectName}} | Text | Required | None |
{{interactionVerb}} | Text | Optional | ordered |
{{interactionDate}} | Text | Required | None |
{{actionUrl}} | Link | Required | None |
{{footerNote}} | Text | Optional | You are receiving this because of a recent interaction. |
{{unsubscribeUrl}} | Link | Optional | None |
API
Create a template from this design once, then send it with the values for each message.
import { init, nextmail } from '@nextmail/sdk' init({ apiKey: process.env.NEXTMAIL_API_KEY }) const template = await nextmail.templates.create({ name: 'Feedback request', starter: 'feedback-request', publish: true,}) const sent = await nextmail.templates.send(template.slug, { from: 'Northwind <[email protected]>', to: '[email protected]', props: { subjectName: 'the linen overshirt', interactionDate: '24 September', actionUrl: 'https://example.com/feedback/NW-10482', },}) console.log(sent.id, sent.status)Notifications
Start from one
Every template opens in the editor as blocks you can move, restyle or delete, and sends through the API with the values filled in.