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

# Email subscribers

> Let visitors subscribe to a status page and get an email for every incident update

Visitors can subscribe to a status page and receive an email whenever you post or update an incident on it.

## Turning it on

**1. Configure real outgoing mail**

Set `MAIL_MAILER=smtp` (or another provider) in `.env`. With the default `log` mailer nothing is delivered: messages are only written to the log, and only when `LOG_LEVEL=debug`. See [Installation](https://docs.azvian.com/uptime-monitor/installation.md#5-set-up-email).

**2. Run the queue worker**

Subscriber emails are queued, one per recipient, so a slow mail server never holds up posting an incident. Run `php artisan queue:work`, or the single cron line from the installation guide.

**3. Switch it on for the page**

On **Status pages → Edit**, tick *Let visitors subscribe to incident updates by email* and save. A sign-up box appears on the page.

The same page lists your subscribers, lets you **Remove** one, and has **Download CSV** for the confirmed list.

## What gets sent, and when

Subscribers get one email per **posted-incident update**: when you post an incident, and each time you add an update, including the final "Resolved" one.

* Only **confirmed** subscribers are emailed.
* A subscriber is emailed only about incidents that page actually shows: those that name a site on the page, or that name no site at all.
* An incident you post **already resolved** (a write-up of something fixed) is not announced.
* Automatic downtime detected by the monitoring checks is **not** emailed to subscribers; that is what [alerts](https://docs.azvian.com/uptime-monitor/alerts.md) are for (they go to your own team). Scheduled maintenance is not emailed either.

## How sign-up works (double opt-in)

1. The visitor enters an address. They always get the same "check your inbox" answer, whatever the address's state, so the form cannot be used to find out who is subscribed.
2. A confirmation email goes out. Nothing else happens until they press the button on the page it links to. Opening the link alone changes nothing (mail scanners open every link in a message), and "No, this wasn't me" removes the request.
3. Every update email has an unsubscribe link and the standard one-click `List-Unsubscribe` header, which mail apps show as an Unsubscribe button.

Unsubscribing **deletes** the address. Requests nobody confirms within seven days are deleted automatically.

## Abuse protection

Because this form makes your server send email to strangers, it is limited:

* 5 requests a minute and 20 an hour per visitor address.
* At most 100 confirmation emails an hour per page.
* A pending address is not emailed again for 10 minutes.
* A hidden field that bots fill in and people never see.
* The address is always a *request*: nobody is subscribed without clicking the confirmation link in their own inbox.

The sign-up and confirm endpoints are exempt from CSRF checks. They do not use a login, and on a [custom domain](https://docs.azvian.com/uptime-monitor/custom-domains.md) the page deliberately has no session to hold a token. The unguessable link token is the credential.

## Data held

An email address, when it was requested, and when it was confirmed. Nothing else. It is removed on unsubscribe, when you remove it, or when the page is deleted.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.