> ## Documentation Index
> Fetch the complete documentation index at: https://formbnb.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Email Notifications

> Get notified when someone submits your form

## Basic Setup

By default, FormBnB sends email notifications to your account email when someone submits a form.

## Custom Recipients

Add custom notification emails in your form settings:

* **Single recipient**: `team@yourcompany.com`
* **Multiple recipients**: Add multiple emails to receive notifications

## Custom Subject

Set a custom email subject with variable interpolation:

```
New contact from {{ name }}
```

Available variables:

* `{{ fieldName }}` - Any field from the submission
* `{{ _formName }}` - The form name
* `{{ _submissionId }}` - Unique submission ID

## Custom Templates

Create custom email templates using HTML and variables:

```html theme={null}
<h2>New submission from {{ name }}</h2>

<p><strong>Email:</strong> {{ email }}</p>
<p><strong>Phone:</strong> {{ phone }}</p>

<h3>Message</h3>
<p>{{ message }}</p>

<hr>
<p style="color: #666; font-size: 12px;">
  Submitted via {{ _formName }} on {{ _timestamp }}
</p>
```

### Template Variables

| Variable              | Description             |
| --------------------- | ----------------------- |
| `{{ fieldName }}`     | Value of any form field |
| `{{ _formName }}`     | Name of the form        |
| `{{ _formSlug }}`     | Form slug/ID            |
| `{{ _submissionId }}` | Unique submission ID    |
| `{{ _timestamp }}`    | Submission timestamp    |
| `{{ _ip }}`           | Submitter's IP address  |
| `{{ _country }}`      | Country (if available)  |

### Conditional Content

```html theme={null}
{{#if phone}}
  <p><strong>Phone:</strong> {{ phone }}</p>
{{/if}}

{{#if company}}
  <p><strong>Company:</strong> {{ company }}</p>
{{/if}}
```

### Loops

```html theme={null}
{{#each interests}}
  <li>{{ this }}</li>
{{/each}}
```

***

## Auto-Responder

Send automatic replies to form submitters:

1. Enable "Auto-Responder" in form settings
2. Set the from name (e.g., "Your Company")
3. Set the subject (e.g., "Thanks for contacting us!")
4. Write your message

### Include Submission Data

Enable "Include submission data" to add a summary of what they submitted:

```
Hi {{ name }},

Thanks for reaching out! We've received your message and will get back to you within 24 hours.

Here's a copy of your submission:
{{ _submissionSummary }}

Best regards,
The Team
```

***

## Reply-To

The notification email's Reply-To is automatically set to the submitter's email if:

1. There's a field named `email` or `Email`
2. Or a field named `_replyto`

This lets you reply directly to the person who submitted the form.

***

## Troubleshooting

### Not receiving emails?

1. Check your spam folder
2. Verify the notification email is correct
3. Check if the form is active
4. Ensure you haven't hit your plan's submission limit

### Emails going to spam?

Add `noreply@formbnb.com` to your contacts or whitelist.
