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

# Emailing passes

> Email Apple Wallet and Google Wallet passes to their holders, automatically when a pass is issued or on request, from an email you design per template.

Passlet can email each pass to its holder: an email with the pass's logo, your message, and **Add to Apple Wallet** and **Add to Google Wallet** buttons that add that holder's own pass. Every template has its own email, and you decide whether passes are emailed as soon as they're issued or only when you send them.

## Set up the template's email

Open the template and switch to the **Email** tab, next to **Apple** and **Google** in the top bar. Turn on **Email passes to holders**, and the panel on the left holds everything about the email:

* **Send**: **Only when you send it** (from the passes list, a pass's page, or the API) or **When a pass is issued** (passes with an email address get it right away).
* **Sender name**: the name the email comes from. It defaults to your workspace name.
* **Reply-to**: where holder replies go, such as your support address. Without one, holders can't reply to the email.
* **Subject** and **Preview text**: the preview text is shown next to the subject in the inbox.
* **Content**: **Generated** or **Custom** (see below).
* **Variables**: insert a placeholder such as `{{label}}` or `{{memberId}}` where you're writing. Each email fills it in with that pass's values.

Emails are sent from `passes@delivery.passlet.io` under your sender name, and replies go to your reply-to address. To send from your own domain, [contact us](mailto:support@passlet.io).

### Generated or custom content

* **Generated**: you write a **Heading** and a **Message**; Passlet lays out the email with the pass's logo and colors and the wallet buttons. The canvas shows it as holders will see it. To choose your own colors, customize the email.
* **Custom**: design the email yourself in the canvas. Choose **Customize** above the email (or **Custom** under **Content**); a custom email starts from the generated one, and switching back to generated discards your design.

A custom email must contain the **Wallet buttons** block, since that's how holders add their pass.

### Design a custom email

* **Add blocks**: drag a block from **Blocks** in the panel onto the email, or click it to add it below the block you're in. Hover a block in the email and click **+** beside it to add one below it, or type `/` where you're writing. A heading, button or quote added from **Blocks** or **+** starts with sample text that's already selected, so you can just type over it.
* **Move blocks**: drag a block by the handle beside it, or use **Move up** and **Move down** in the toolbar.
* **Format**: the toolbar above the email acts on the block you clicked: switch between text and headings, make text bold, italic, underlined or struck through, align the block left, center or right, and duplicate or delete it. Select text to add a link. Clicking the handle beside a block also selects it for the toolbar: all the text of a paragraph, heading, list or quote, or a pass block, divider or set of columns as a whole.
* **Color text and buttons**: select text and pick a color with **Text color** in the toolbar; links in the selection take the color too. Click a button in the email to change its text color and its **Fill**. **Default** removes a color again.
* **Colors**: **Colors** in the panel sets the **Page background** around the email, the **Email background** and the **Text color**. The text color is checked for contrast against the email background, and the footer adapts to the page background.

Besides text, headings, images, buttons, dividers, lists, quotes and columns, three blocks come from the pass:

| Block | Shows |
| - | - |
| **Pass logo** | The pass logo on its background color. |
| **Wallet buttons** | **Add to Apple Wallet** and **Add to Google Wallet** buttons that add the holder's own pass. |
| **Pass barcode** | The barcode on the holder's pass, with its text below it, so the email itself can be scanned. |

The **Pass barcode** block shows the same barcode as the holder's pass in their wallet: the same code, in the same format (QR, Aztec, PDF417 or Code 128), with the same value, including a system-generated one for the [Scanner app](https://docs.passlet.io/guides/redemption-and-scanning.md#the-scanner-app). It's useful for holders who can't or don't add the pass to a wallet: they can show the email at the entrance instead. It takes the barcode of the Apple Wallet design, or the Google Wallet one when the template doesn't offer Apple Wallet. If the pass has no barcode, the block shows nothing in holders' emails.

Every email ends with a short footer below your content: it tells holders they got the email because you issued them a pass, and shows **Wallet passes powered by Passlet** with a link to Passlet. The footer is the same in every email and can't be edited or removed.

#### Images

Add an image with the **Image** block (from **Blocks**, the **+** beside a block, or `/`), or drop or paste an image file onto the email. Use a PNG, JPEG or WebP of up to 8 MB.

Passlet prepares each image for email when you add it: it scales it down to at most 1072 pixels wide (twice the email's width, so it stays sharp on high-resolution screens), stores photos as JPEG and graphics as PNG, compresses it, and removes its metadata, such as camera details and location. An animated image keeps its first frame.

Click an image to set it up in the panel on the left:

* **Alt text**: describes the image to screen readers and where images are turned off. A linked image needs it, as it names the link; leave it empty only for a purely decorative image.
* **Width**: in pixels, up to 536, the full width of the email. **Auto** shows the image at its own size, up to full width.
* **Link**: where tapping the image leads. It can use placeholders.

Line an image up, move, duplicate or delete it from the toolbar, like any other block. Images travel inside the email itself, so they show without the holder's mail app downloading anything, and Passlet still tracks delivery only. An email can embed up to 10 different images.

### Publishing

The email is saved and published with the template. Passes are always emailed with the email of the template's **published** version, so publish after changing it. The publish checklist flags a missing subject, a custom email without wallet buttons, placeholders that aren't template variables, and more than 10 different images. It also warns when the email has a **Pass barcode** block but the pass has no barcode, about an **Image** block without an image, and when the email has no reply-to.

## Give passes an email address

A pass can store its holder's email address; Passlet keeps it only to email the pass.

* **Issue screen**: when the template emails passes, the grid has an **Email** column. **Import from CSV** maps a column named `email` to it.
* **Pass page**: **Pass data → Edit** changes or removes the address.
* **API**: send `email` when creating a pass, or change it with `PATCH /v1/passes/{id}`.

Changing only the email address doesn't update the pass in wallets.

## Send emails

Only **issued** passes with an email address, on a template with email turned on, can be emailed.

* **When issued**: on templates set to **When a pass is issued**, each pass is emailed once, as soon as it's issued.
* **One pass**: on the **Passes** list, hover the pass and click **Send email** in its row, between **Copy wallet link** and **Void**; it's disabled for a pass that can't be emailed, and hovering it says why. Or open the pass: its **Overview** shows an **Email** section below the wallet links, with **Send email**.
* **Several passes**: select them on the **Passes** list and choose **Email** in the action bar. Passes that can't be emailed are skipped.

Each send is a new email with the pass's current links, so sending again is how you resend a pass.

### Daily limit

Each workspace can send a limited number of pass emails per day. The day runs in UTC, so the limit resets at 00:00 UTC.

| Workspace | Pass emails per day |
| - | - |
| On its trial | 10 |
| Pilot | 100 |
| Starter | 2,000 |
| Premium | 10,000 |

Every email that was queued or sent counts, including one that later bounced. Emails that were never sent, because they failed, weren't sent or hit the limit, don't count.

When your workspace reaches its limit:

* **Sending from the console** shows **Daily email limit reached**, and the email isn't sent.
* **Emails on issue** aren't sent either. The pass's **Email** section and the **Passes** list show them as **Not sent: daily limit**, with the limit and when it resets. Send them again once the limit has reset.
* **The API** returns `429` with `PASS_EMAIL_DAILY_LIMIT_REACHED` and a `Retry-After` header that counts down to 00:00 UTC.

If you need to send more, upgrade your plan, or [contact us](mailto:support@passlet.io) to raise your workspace's limit.

### Unsubscribing

Every pass email carries a one-click unsubscribe, which mail apps such as Gmail, Apple Mail and Outlook show as an **Unsubscribe** button next to the sender. A holder who unsubscribes gets no more pass emails from your workspace; passes already in their wallet keep working. Their later emails show as **Not sent**, with the reason. Unsubscribing only affects your workspace's pass emails, not other senders on Passlet.

## Delivery status

The pass's **Email** section lists every email sent to it, newest first:

| Status | Meaning |
| - | - |
| **Sending** | Queued; it goes out within seconds. |
| **Sent** | Handed to the mail provider. |
| **Delivered** | Accepted by the holder's mail server. |
| **Bounced** | The address doesn't accept mail. |
| **Marked as spam** | The holder reported the email as spam. |
| **Failed** | It couldn't be sent; the reason is shown below it. |
| **Not sent** | The address bounced or reported spam before, or the holder unsubscribed, so Passlet doesn't email it. |
| **Not sent: daily limit** | Your workspace had reached its [daily limit](#daily-limit). |

The **Passes** list shows each pass's latest email in its **Email** column, as an envelope in the color of its status, marked with an X when it bounced, failed, or wasn't sent, and with an exclamation mark when it was marked as spam or hit the daily limit; hover it for the status and time. A plain grey envelope means the pass can be emailed but hasn't been yet, and a dash means it can't be emailed: it isn't issued, its template doesn't email passes, or it has no email address. Delivery updates that arrive later show when you refresh the list.

Passlet tracks delivery only, not opens or clicks.

## From the API

* **Email address**: passes take an optional `email` on `POST /v1/passes`, `POST /v1/passes/batch`, and `PATCH /v1/passes/{id}`, and return it.
* **Send**: `POST /v1/passes/{id}/email` (scope `passes:write`) queues an email and returns it with `201`. Send an `Idempotency-Key` header to make retries safe: repeating a key returns the email it queued with `200`. A pass that can't be emailed returns `409` with `PASS_NOT_ISSUED`, `PASS_EMAIL_MISSING`, or `PASS_EMAIL_DISABLED`. At your workspace's [daily limit](#daily-limit), it returns `429` with `PASS_EMAIL_DAILY_LIMIT_REACHED`; wait for the `Retry-After` before sending again.
* **Status**: `GET /v1/passes/{id}/emails` (scope `passes:read`) lists the pass's emails with their status. An email the daily limit kept from being sent has the status `LIMITED`.

See the [API reference](https://docs.passlet.io/api-reference/overview.md) for the full schemas.


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