TemplatesTravel

Trip itinerary email template

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

From
Northwind <[email protected]>
Subject
Your itinerary for Lisbon
Preview text
13 to 16 November, booking FW-58213. Every leg of your trip in one place.
Preview of the Trip itinerary template
trip-itinerary.txt
{{tripDates}}, booking {{bookingReference}}. Every leg of your trip in one place.

{{companyName}}

Booking {{bookingReference}}

Your trip to {{destination}}

Here is your trip from start to finish, {{tripDates}}. Each leg lists the times and references you may be asked for on the way.

01

{{leg1Date}}: {{leg1Title}}

{{leg1Detail}}

02

{{leg2Date}}: {{leg2Title}}

{{leg2Detail}}

03

{{leg3Date}}: {{leg3Title}}

{{leg3Detail}}

04

{{leg4Date}}: {{leg4Title}}

{{leg4Detail}}

View your trip [{{tripUrl}}]

All times are local. If anything changes, we will email you and update your trip page.

You are receiving this because you booked a trip with {{companyName}}.

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

About

When to send it

Send it once a trip is booked, and again whenever it changes. Four numbered legs take the traveller from the journey out to the way home, each with its date and details, and a button opens the live trip page.

18 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
{{companyName}}TextRequiredNone
{{bookingReference}}TextRequiredNone
{{destination}}TextRequiredNone
{{tripDates}}TextRequiredNone
{{leg1Date}}TextRequiredNone
{{leg1Title}}TextRequiredNone
{{leg1Detail}}TextRequiredNone
{{leg2Date}}TextRequiredNone
{{leg2Title}}TextRequiredNone
{{leg2Detail}}TextRequiredNone
{{leg3Date}}TextRequiredNone
{{leg3Title}}TextRequiredNone
{{leg3Detail}}TextRequiredNone
{{leg4Date}}TextRequiredNone
{{leg4Title}}TextRequiredNone
{{leg4Detail}}TextRequiredNone
{{tripUrl}}LinkRequiredNone
{{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: 'Trip itinerary',  slug: 'trip-itinerary',  starter: 'trip-itinerary',  publish: true,}) const sent = await nextmail.templates.send('trip-itinerary', {  from: 'Northwind <[email protected]>',  to: '[email protected]',  props: {    companyName: 'Fernway Travel',    bookingReference: 'FW-58213',    destination: 'Lisbon',    tripDates: '13 to 16 November',    leg1Date: 'Fri 13 Nov',    leg1Title: 'Flight to Lisbon',    leg1Detail: 'Larkspur Air LK 412 from London Gatwick, North Terminal. Departs 07:25, lands 10:05.',    leg2Date: 'Fri 13 Nov',    leg2Title: 'Check in at Casa Ribeira',    leg2Detail: 'In Alfama, ten minutes from the castle. Rooms are ready from 15:00. Three nights, breakfast included.',    leg3Date: 'Sat 14 Nov',    leg3Title: 'Day trip to Sintra',    leg3Detail: 'Your guide meets you in the hotel lobby at 09:00 and brings you back by 17:30.',    leg4Date: 'Mon 16 Nov',    leg4Title: 'Flight home',    leg4Detail: 'Larkspur Air LK 413 from Lisbon, Terminal 1. Departs 11:05, lands 13:50.',    tripUrl: 'https://example.com/trips/FW-58213',  },}) console.log(sent.id, sent.status)

Travel

More templates like this

Preview of the Check-in open template

Check-in open

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

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.