> For the complete documentation index, see [llms.txt](https://docs.hostelmate.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostelmate.co/finance-management/notifications/email-notifications.md). Agents can also search and read this documentation through its [MCP server](https://docs.hostelmate.co/~gitbook/mcp).

# Email Notifications

Write the automatic emails guests get when they book, before they arrive, after check-out, or when a booking changes or is cancelled.

The Email Notifications page is where you write the automatic emails your guests get from you: when they book, a few days before they arrive, after they leave, and whenever a booking is changed or cancelled. You write each one once, and it goes out on its own with the guest's details filled in.

## The Email Triggers

You can set up emails for five different scenarios:

| Trigger                  | When it sends                                                                                                  |
| ------------------------ | -------------------------------------------------------------------------------------------------------------- |
| **Booking Confirmation** | As soon as a booking comes in (bookings made on your own booking page have their own confirmation, see below). |
| **Pre-Arrival Guide**    | A few days before check-in (great for door codes and directions).                                              |
| **Booking Updated**      | If dates or details change.                                                                                    |
| **Booking Cancellation** | If a booking is cancelled.                                                                                     |
| **Post-Stay Thank You**  | After check-out (perfect for asking for reviews!).                                                             |

## Which bookings these emails go to

These emails go to guests whose bookings come from booking sites, WhatsApp, walk-ins, or that your team adds in the Front Desk app.

Bookings made on your own booking page are the one exception, and only for the first email. Those guests get the confirmation (or waitlist) email you set up under **Booking Engine → Booking emails**, because it's written for someone who has just booked, and often paid, online. It's always sent, so switching Booking Confirmation off on this page doesn't stop it. See [Booking emails](https://docs.hostelmate.co/finance-management/property-setup/booking-engine.md#booking-emails-the-confirmation-guests-get-when-they-book-online) for how to change it.

Everything after that first email comes from this page for every booking, including website ones: the pre-arrival guide, the thank-you after check-out, and any update or cancellation email.

{% hint style="warning" %}
If you've written your own Booking Confirmation here and want website guests to get the same email, add it to Booking emails too. There's a **Copy from Email Notifications** button there that brings it over for you.
{% endhint %}

## Editing a Template

When you click on one of the triggers, you'll open the editor. Here you can turn the email on or off, edit the subject line, and write the email body using a rich text editor.

### Custom Timing (Pre-Arrival & Post-Stay)

For the "Pre-Arrival Guide" and "Post-Stay Thank You" emails, you have granular control over *when* the email is sent:

* **Pre-Arrival:** A special setting appears allowing you to specify exactly how many "days before check-in" the email should be fired.
* **Post-Stay:** A similar setting lets you choose how many "days after check-out" the thank you email goes out.

### Placeholders (The Magic Variables)

{% hint style="success" %}
Don't write "Dear Guest"—use our Placeholders!
{% endhint %}

On the left side of the editor, you'll see a list of variables like `{{guest_name}}` or `{{checkInFrom}}`. Just click one to copy it, and paste it into your email. When the email actually sends, the system swaps the placeholder with the real guest's details.

### Guest Preview

Wondering what your email will actually look like when it hits a guest's inbox? Switch to the **Preview** tab! It generates a live, styled mockup of the email using sample data, so you can make sure your formatting and placeholders are perfect before hitting save.
