# Send email from TypeScript or your terminal
URL: https://samva.dev/changelog/send-email-from-typescript-or-the-terminal
> Install the samva package or the CLI to send email and manage domains and templates, and verify signed webhooks with @samva/webhooks.
- Published: 2026-08-07
- Tags: sdk, cli, api

Send email from your app with the TypeScript SDK, or from a shell with the CLI. Both call the same public API, so what you send from code matches what you send from the CLI.

```ts title="send.ts"
import { createClient } from "samva";

const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });

await samva.email.send({
  to: [{ email: "ada@example.com" }],
  subject: "Welcome",
  html: "<p>You're in.</p>",
});
```

```bash
npm install -g @samva/cli
samva email send --to ada@example.com --subject "Welcome" --text "You're in."
```

A service that only receives webhooks can install `@samva/webhooks` by itself to verify signatures, no SDK needed.

## Links

- [samva on npm](https://www.npmjs.com/package/samva)
- [@samva/cli on npm](https://www.npmjs.com/package/@samva/cli)
- [@samva/webhooks on npm](https://www.npmjs.com/package/@samva/webhooks)
- [TypeScript SDK](/docs/developers/typescript-sdk)
- [CLI](/docs/developers/cli)

## Related

- [Serve open and click tracking from your domain](/changelog/serve-tracking-from-your-own-domain)
- [All changelog entries](/changelog)
