TemplatesAccounts and access

Welcome email template

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

From
Northwind <[email protected]>
Subject
Welcome to Northwind
Preview text
Your Northwind account is ready
Preview of the Welcome template
welcome.txt
Your {{productName}} account is ready

{{productName}}

Welcome to {{productName}}

Hey {{firstName}},

Your account is set up. One step left: confirm this address, and your workspace is ready to use.

Get started [{{getStartedUrl}}]

Or paste this link into your browser:

{{getStartedUrl}}

If you did not sign up, you can ignore this message and nothing further happens.

The {{productName}} team

You are getting this because this address was used to create a {{productName}} account.

Shown with sample values. The HTML and plain-text tabs keep the placeholders.

About

When to send it

Send it as soon as someone creates an account. It greets them by first name, points at the single next step, and repeats the link as text in case the button does not work. The footer says why the email arrived.

4 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
{{firstName}}TextOptionalthere
{{getStartedUrl}}LinkRequiredNone
{{unsubscribeUrl}}LinkOptionalNone
{{productName}}TextOptionalNextmail

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: 'Welcome',  slug: 'welcome',  starter: 'welcome',  publish: true,}) const sent = await nextmail.templates.send('welcome', {  from: 'Northwind <[email protected]>',  to: '[email protected]',  props: {    firstName: 'Maya',    getStartedUrl: 'https://example.com/start',  },  slots: { productName: 'Northwind' },}) console.log(sent.id, sent.status)

Accounts and access

More templates like this

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
Preview of the Password reset template

Password reset

A reset email with one button, a link to paste and a clear expiry.

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.