# Anything

> Add email sending with MailBlastr 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 MailBlastr.

## 1. Ask Anything to add email

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

## 2. Add your MailBlastr 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 `MAILBLASTR_API_KEY`. |
| `Value` | string | Yes | Your MailBlastr API key (e.g. `mb_xxxxxxxxx`), created in the [dashboard](https://www.mailblastr.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.mailblastr.com/docs/add-a-domain), then update the `from` field in the function to use an address on that domain.
