TemplatesTravel

Check-in open email template

A check-in notice with the booking reference, the flight, the bag allowance and the deadline.

From
Northwind <[email protected]>
Subject
Check-in is open for your flight to Lisbon
Preview text
Flight LK 412 on Friday 13 November. Online check-in closes 2 hours before departure.
Preview of the Check-in open template
check-in-open.txt
Flight {{flightNumber}} on {{departureDate}}. Online check-in closes {{checkInCloses}}.

{{airlineName}}

Check-in is open

You can now check in for your flight to {{arrivalCity}}. Choose your seat and get your boarding pass in one go.

Booking reference

{{bookingReference}}

Flight

{{flightNumber}}, {{departureCity}} to {{arrivalCity}}

Departs

{{departureDate}} at {{departureTime}}

Check-in closes

{{checkInCloses}}

Cabin bag

{{cabinBag}}

Checked bag

{{checkedBag}}

Check in now [{{checkInUrl}}]

Add a bag [{{manageBookingUrl}}]

Bag drop closes {{bagDropCloses}} before departure. Bring the passport or ID you booked with.

You are receiving this because you have a flight booked with {{airlineName}}.

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

About

When to send it

Send it when online check-in opens. The booking reference is set in a monospace font so it is easy to read out at the desk, the flight and baggage details sit in the same table, and the button goes straight to check-in.

14 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
{{airlineName}}TextRequiredNone
{{bookingReference}}TextRequiredNone
{{flightNumber}}TextRequiredNone
{{departureCity}}TextRequiredNone
{{arrivalCity}}TextRequiredNone
{{departureDate}}TextRequiredNone
{{departureTime}}TextRequiredNone
{{checkInCloses}}TextRequiredNone
{{cabinBag}}TextRequiredNone
{{checkedBag}}TextRequiredNone
{{checkInUrl}}LinkRequiredNone
{{manageBookingUrl}}LinkRequiredNone
{{bagDropCloses}}TextOptional60 minutes
{{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: 'Check-in open',  slug: 'check-in-open',  starter: 'check-in-open',  publish: true,}) const sent = await nextmail.templates.send('check-in-open', {  from: 'Northwind <[email protected]>',  to: '[email protected]',  props: {    airlineName: 'Larkspur Air',    bookingReference: 'K7QX4M',    flightNumber: 'LK 412',    departureCity: 'London Gatwick',    arrivalCity: 'Lisbon',    departureDate: 'Friday 13 November',    departureTime: '07:25',    checkInCloses: '2 hours before departure',    cabinBag: 'One bag up to 10 kg, 55 x 40 x 20 cm',    checkedBag: 'One bag up to 23 kg',    checkInUrl: 'https://example.com/check-in/K7QX4M',    manageBookingUrl: 'https://example.com/manage/K7QX4M',  },}) console.log(sent.id, sent.status)

Travel

More templates like this

Preview of the Trip itinerary template

Trip itinerary

Every leg of a trip in date order, with the times and references travellers need.

6 styles
Preview of the Booking changed template

Booking changed

A schedule change with the original and new times, and a choice to accept or change.

6 styles
Preview of the Trip starts soon template

Trip starts soon

A pre-departure reminder with the departure in a date tile and a documents checklist.

6 styles
Preview of the Application received template

Application received

Confirms an application arrived, with a status track and what happens next.

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.