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

# The Digital Mailman

> Package up beautiful, personalized messages and deliver them right to your user's doorstep.

# The Digital Mailman (Send Email)

Ding-dong! Special delivery!

Whenever a contact steps onto **The Digital Mailman** block, Mailofly wraps up a gorgeous letter and drops it straight into their inbox at lightning speed.

***

## What Goes Inside the Mailbag?

Click on the card to open its side drawer and fill out the delivery envelope:

### 1. Who is Sending the Letter? (`From`)

* **Sender Email**: An address from your verified Mailofly domains (like `hello@yourcompany.com`).
* **Sender Name**: A friendly name displayed in their inbox (like `Maya from SuperApp`).

### 2. The Subject Line

Make it snappy, friendly, and fun! You can include magic tags directly in the subject line:

* *"Welcome to the club, `{{payload.first_name}}`! 🎉"*
* *"Your package is on its way! 📦"*

### 3. The Letter Itself

* **Use a Mailofly Template (Easiest & Prettiest!)**: Pick a pre-designed layout you made in the Mailofly Template Editor with your company's buttons, logos, and fonts.
* **Custom Email**: Write your own custom message and HTML on the spot.

***

## Magic Name Tags (Merge Tags)

Nobody likes getting a boring letter addressed to "Dear Customer".

Make every letter feel hand-written by pulling words straight out of the goodie backpack or their contact card:

| Magic Tag | What it Prints |
| - | - |
| `{{payload.first_name}}` | Their first name from the signal |
| `{{payload.favorite_flavor}}` | Any custom detail from the goodie backpack |
| `{{payload.item_name}}` | The product they bought or looked at |
| `{{contact.email}}` | Their email address |

```html theme={null}
<p>Hey there {{payload.first_name}},</p>
<p>We packed your <strong>{{payload.item_name}}</strong> and sent it flying your way!</p>
```

***

## Safety Net for Missing Names (Fallbacks)

What if someone signs up without telling you their first name? You definitely don't want your email to say: *"Hey there , welcome!"*.

Use a fallback safety net:

```
Hey there {{payload.first_name | "friend"}},
```

If their name is Maya, it prints *"Hey there Maya,"*. If their name was left blank, it prints *"Hey there friend,"*!

***

## Up Next

* [Hand out club badges with Add to Segment](add-to-segment)
* [Update user profiles with Profile Card Pen (Update Contact)](contact-update)


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