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

# Email Notifications

{% hint style="info" %}
Stay in touch with your guests without lifting a finger! The Email Notifications page lets you design beautiful, automated emails that get sent to guests at key moments before, during, and after their stay.
{% endhint %}

## The Email Triggers

You can set up emails for five different scenarios:

| Trigger                  | When it sends                                                     |
| ------------------------ | ----------------------------------------------------------------- |
| **Booking Confirmation** | Immediately after a guest books.                                  |
| **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!).                |

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.hostelmate.co/finance-management/notifications/email-notifications.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
