# Anything

> Add email sending with SendDart to an Anything project by adding the API key as a project secret.

[Anything](https://createanything.com) is a platform for building sites, tools, apps, and projects via chat. You can send email from your Anything project by asking the chat to add email functionality with SendDart.

## 1. Ask Anything to add email

In the chat, ask Anything to add email functionality to your project and have it call the SendDart API. In Node.js projects, the generated function can use the official `senddart` SDK (`npm install senddart`) and call `mb.emails.send(...)`. In other runtimes it sends with a plain HTTP `POST` to `https://www.senddart.com/api/emails`.

## 2. Add your SendDart API key

Anything usually prompts you for an API key. If it doesn't, open the project's **More options** menu and select **Secrets**, then add a new secret:

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Name` | string | Yes | Use `SENDDART_API_KEY`. |
| `Value` | string | Yes | Your SendDart API key (e.g. `mb_xxxxxxxxx`), created in the [dashboard](https://www.senddart.com/docs/api-keys/overview). |

> **Warning:** Do not share your API key or expose it in client-side code. Store it as a project secret.

## 3. Add a custom domain

By default you can only send email to your own address. To send to other recipients, [add and verify a custom domain](https://www.senddart.com/docs/add-a-domain), then update the `from` field in the function to use an address on that domain.
