---
title: "Invitation request approved email template"
description: "Says yes to a request for an invitation and sends a personal access code."
url: "https://nextmail.sh/email-templates/invitation-request-approved"
---

[Templates](https://nextmail.sh/email-templates.md)[Events](https://nextmail.sh/email-templates.md#events)

# Invitation request approved email template

Says yes to a request for an invitation and sends a personal access code.

[Use this template](https://nextmail.sh/mail/templates?starter=invitation-request-approved) [Use this template](https://nextmail.sh/signup.md?next=%2Fmail%2Ftemplates%3Fstarter%3Dinvitation-request-approved)[Customize with AI](https://nextmail.sh/email-templates/generate.md?starter=invitation-request-approved)

- **From**
  Northwind <hello@example.com>
- **Subject**
  Approved: your place at Winter Preview Night
- **Preview text**
  Here is your personal access code. Please confirm by Friday 20 November.

![Preview of the Invitation request approved template](https://nextmail.sh/email-templates/previews/invitation-request-approved-desktop.webp?v=49c9f3399cd7)

invitation-request-approved.txt

```
Here is your personal access code. Please confirm by {{confirmBy}}.

{{hostName}}

There is a place for you

Your request to join {{eventName}} has been approved. Confirm your place by {{confirmBy}} with the personal access code below.

{{accessCode}}

{{eventMonth}}

{{eventDay}}

{{eventName}}

{{eventTime}}, {{venueName}}

Confirm your place [{{confirmUrl}}]

The code works once and only for you, so please do not share it. A place not confirmed by {{confirmBy}} goes to the next person waiting.

You are receiving this because you asked {{hostName}} for an invitation.
```

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

About

## When to send it

Send it when you approve a request and want the guest to confirm with a code that only works for them. It holds the code, the date and the venue, a confirm button and the deadline after which the place goes to someone else.

10 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.

| Placeholder | Kind | Required | Default |
| --- | --- | --- | --- |
| `{{hostName}}` | Text | Required | None |
| `{{eventName}}` | Text | Required | None |
| `{{eventMonth}}` | Text | Required | None |
| `{{eventDay}}` | Text | Required | None |
| `{{eventTime}}` | Text | Required | None |
| `{{venueName}}` | Text | Required | None |
| `{{accessCode}}` | Text | Required | None |
| `{{confirmUrl}}` | Link | Required | None |
| `{{confirmBy}}` | Text | Required | None |
| `{{unsubscribeUrl}}` | Link | Optional | None |

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: 'Invitation request approved',  slug: 'invitation-request-approved',  starter: 'invitation-request-approved',  publish: true,}) const sent = await nextmail.templates.send('invitation-request-approved', {  from: 'Northwind <hello@example.com>',  to: 'maya@example.com',  props: {    hostName: 'Lumen Studio',    eventName: 'Winter Preview Night',    eventMonth: 'Dec',    eventDay: '3',    eventTime: '7:00 pm',    venueName: 'Lumen Studio, Glasgow',    accessCode: 'LUM-4821',    confirmUrl: 'https://example.com/lumen/winter-preview/confirm',    confirmBy: 'Friday 20 November',  },}) console.log(sent.id, sent.status)
```

Events

## More templates like this

![Preview of the Event invitation template](https://nextmail.sh/email-templates/previews/event-invitation-desktop.webp?v=fa1f1022665c)

### Event invitation

A formal invitation with the date, the place and one-click replies to accept or decline.

6 styles

![Preview of the Save the date template](https://nextmail.sh/email-templates/previews/save-the-date-desktop.webp?v=5ec31acd4336)

### Save the date

An early notice that puts the date first and lets guests add it to their calendar.

6 styles

![Preview of the RSVP confirmed template](https://nextmail.sh/email-templates/previews/rsvp-confirmed-desktop.webp?v=0bb6c75f68c3)

### RSVP confirmed

Confirms a guest's reply with their answer, the number of guests and a link to change it.

6 styles

![Preview of the Event reminder template](https://nextmail.sh/email-templates/previews/event-reminder-desktop.webp?v=e4e70bb62530)

### Event reminder

A reminder before the day with the time, the place and directions to the venue.

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.

[Open mail](https://nextmail.sh/mail/inbox) [Get Started](https://nextmail.sh/signup.md)[How templates work](https://nextmail.sh/features/templates.md)
