
Welcome
A sign-up welcome with a short greeting, one button to get started and the link written out underneath.
6 stylesAn invitation that names the person inviting, the workspace and the role on offer.

{{inviterName}} invited you to {{workspaceName}}
Join {{workspaceName}}
{{inviterName}} ({{inviterEmail}}) invited you to join {{workspaceName}} as {{roleName}}.
Accept invitation [{{actionUrl}}]
This invitation expires in {{expiryDays}} days. If you were not expecting it, you can ignore this. Nothing is shared with you until you accept.
{{footerNote}}Shown with sample values. The HTML and plain-text tabs keep the placeholders.
About
Send it when someone is invited to a workspace or team. It says who sent the invitation and from which address, which role comes with it and how many days it stays open, and that nothing is shared until they accept.
8 values to fill
Required values have to come with every send. The rest fall back to the default shown here.
| Placeholder | Kind | Required | Default |
|---|---|---|---|
{{inviterName}} | Text | Required | None |
{{inviterEmail}} | Text | Required | None |
{{workspaceName}} | Text | Required | None |
{{roleName}} | Text | Required | None |
{{actionUrl}} | Link | Required | None |
{{expiryDays}} | Text | Optional | 7 |
{{footerNote}} | Text | Optional | You are receiving this because somebody invited you. |
{{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: 'Team invitation', slug: 'invite-teammate', starter: 'invite-teammate', publish: true,}) const sent = await nextmail.templates.send('invite-teammate', { from: 'Northwind <[email protected]>', to: '[email protected]', props: { inviterName: 'Jonas Weber', inviterEmail: '[email protected]', workspaceName: 'Northwind Design', roleName: 'Editor', actionUrl: 'https://example.com/invite/3b9e', },}) console.log(sent.id, sent.status)Accounts and access

A sign-up welcome with a short greeting, one button to get started and the link written out underneath.
6 styles
A compact welcome in a card, with one button back into the product.
6 styles
A one-time code set large enough to read from another screen.
6 styles
Passwordless sign-in with one button and the link printed as text.
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.