
Notification
The plain one: a headline, a line of detail, an optional quote and a link.
6 stylesA periodic summary of three items, with one link at the end.

{{periodLabel}} at {{productName}}
{{periodLabel}}
{{intro}}
{{itemTitle1}}
{{itemBody1}}
{{itemTitle2}}
{{itemBody2}}
{{itemTitle3}}
{{itemBody3}}
{{actionLabel}} [{{actionUrl}}]
{{footerNote}}Shown with sample values. The HTML and plain-text tabs keep the placeholders.
About
Send it daily or weekly instead of a stream of separate notices. It opens with a period label and a short intro, lists three items with a title and a line each, and ends with one link to see everything.
13 values to fill
Required values have to come with every send. The rest fall back to the default shown here.
| Placeholder | Kind | Required | Default |
|---|---|---|---|
{{productName}} | Text | Required | None |
{{periodLabel}} | Text | Required | None |
{{intro}} | Text | Optional | None |
{{itemTitle1}} | Text | Required | None |
{{itemBody1}} | Text | Optional | None |
{{itemTitle2}} | Text | Optional | None |
{{itemBody2}} | Text | Optional | None |
{{itemTitle3}} | Text | Optional | None |
{{itemBody3}} | Text | Optional | None |
{{actionLabel}} | Text | Optional | See everything |
{{actionUrl}} | Link | Required | None |
{{footerNote}} | Text | Optional | You are receiving this because you subscribed to updates. |
{{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 }) await nextmail.templates.create({ name: 'Digest', slug: 'digest', starter: 'digest', publish: true,}) const sent = await nextmail.templates.send('digest', { from: 'Northwind <[email protected]>', to: '[email protected]', props: { productName: 'Northwind', periodLabel: 'Your week', intro: 'Three things happened in your workspace since Monday.', itemTitle1: 'Launch plan approved', itemBody1: 'Priya signed off on the pricing section.', itemTitle2: 'Two new teammates', itemBody2: 'Jonas and Amara joined the design team.', itemTitle3: 'Invoice paid', itemBody3: 'The October invoice was paid in full.', actionUrl: 'https://example.com/activity', },}) console.log(sent.id, sent.status)Notifications

The plain one: a headline, a line of detail, an optional quote and a link.
6 styles
An appointment confirmation with the time zone spelled out and a link to reschedule.
6 styles
Asks about one named order or conversation, and only once.
6 styles
Release notes with a cover image, a lead paragraph and three numbered changes.
6 stylesStart 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.
Fifteen minutes on video with the people who build Nextmail. Free, at a time you choose.