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

# Messaging overview

> Send email from your Bludia backend. Channels store delivery settings (SMTP today); templates store subject and HTML content with {{variables}}. Messages are sent from hooks and from authentication flows such as email verification.

Messaging lets your backend send transactional messages, like booking confirmations or verification codes, without building an email system.

```text theme={null}
Hook or auth flow ──► Template "Booking confirmed" ──► Channel "SMTP (Postmark)" ──► sarah@example.com
                       Subject: Your booking on {{date}}
                       Body:    Hi {{name}}, ...
```

> [card] [Channels](https://docs.bludia.com/messaging/channels.md)
>
> How messages are delivered: SMTP host, credentials, sender address, limits.

> [card] [Templates](https://docs.bludia.com/messaging/templates.md)
>
> What messages say: subject and HTML body with `{{variables}}`.

## Supported channels

| Channel type | Status |
| :- | :- |
| **Email (SMTP)** | Available |
| SMS | Coming soon |
| WhatsApp | Coming soon |
| Telegram | Coming soon |
| Push | Coming soon |

## Ways to send

| Trigger | How |
| :- | :- |
| A record changes | `ctx.Msg().Send(...)` in an [after hook](https://docs.bludia.com/hooks/sdk-reference.md#messaging) |
| A user registers (verification) | Configure the guard's [email verification](https://docs.bludia.com/authentication/email-verification.md) channel and template |

## Example: send from a hook

```go theme={null}
ctx.Msg().Send(bludia.MsgSendRequest{
	Channel:  "email",
	Template: "Booking confirmed",
	To:       "sarah@example.com",
	Data:     map[string]any{"name": "Sarah", "date": "1 Dec, 10:00"},
})
```

Messages are queued and sent in the background, so hooks return quickly.


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