TemplatesAccounts and access

Team invitation email template

An invitation that names the person inviting, the workspace and the role on offer.

From
Northwind <[email protected]>
Subject
Jonas Weber invited you to Northwind Design
Preview text
Jonas Weber invited you to Northwind Design
Preview of the Team invitation template
invite-teammate.txt
{{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

When to send it

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

What each send fills in

Required values have to come with every send. The rest fall back to the default shown here.

PlaceholderKindRequiredDefault
{{inviterName}}TextRequiredNone
{{inviterEmail}}TextRequiredNone
{{workspaceName}}TextRequiredNone
{{roleName}}TextRequiredNone
{{actionUrl}}LinkRequiredNone
{{expiryDays}}TextOptional7
{{footerNote}}TextOptionalYou are receiving this because somebody invited you.
{{unsubscribeUrl}}LinkOptionalNone

API

Send it from your code

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

More templates like this

Preview of the Welcome template

Welcome

A sign-up welcome with a short greeting, one button to get started and the link written out underneath.

6 styles
Preview of the Welcome card template

Welcome card

A compact welcome in a card, with one button back into the product.

6 styles
Preview of the Verification code template

Verification code

A one-time code set large enough to read from another screen.

6 styles
Preview of the Magic link template

Magic link

Passwordless sign-in with one button and the link printed as text.

6 styles

Start from one

Pick a design, change anything,
and send it from your code.

Every template opens in the editor as blocks you can move, restyle or delete, and sends through the API with the values filled in.