# v0

> Add email sending with SendDart to a v0 project by asking the chat to wire it up with your API key.

[v0](https://v0.dev) by Vercel is a platform for building sites, tools, apps, and projects via chat. You can add SendDart to a v0 project by asking the chat to add email sending and pointing it at your SendDart API key.

## 1. Add your SendDart API key

Create a SendDart API key in the [dashboard](https://www.senddart.com/docs/api-keys/overview), then ask v0 to add email sending and store the key as an environment variable (e.g. `SENDDART_API_KEY`). In Node.js/TypeScript projects v0 can install the official `senddart` SDK (`npm install senddart`) and call `mb.emails.send(...)`. In other languages or runtimes, sends are plain HTTP `POST`s to `https://www.senddart.com/api/emails`.

> **Warning:** Do not share your API key or expose it in the browser or other client-side code. Keep the send on the server side and read the key from an environment variable.

## Example prompt

```text
Add email sending with SendDart. When the contact form is submitted, send an
email by POSTing to https://www.senddart.com/api/emails with an Authorization:
Bearer header using SENDDART_API_KEY. Read the key from an environment variable.
```

## 2. 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 send code to use an address on that domain (or ask the chat to update it).
