# Send email from your code

Pick your language or framework. Each guide installs the SDK, sends a first email from your own domain and checks Mailset’s webhooks, with code the SDKs’ own tests run.

- [Send email from Node.js](https://mailset.app/send-email/nodejs): Send email from Node.js, Bun, Deno or Cloudflare Workers with the Mailset SDK: one npm package with no dependencies, a typed send and webhook checks.
- [Send email from Python](https://mailset.app/send-email/python): Send email from Python 3.9+ with pip install mailset: a typed client for blocking code or asyncio, webhook checks, and mail from your own domain.
- [Send email from Go](https://mailset.app/send-email/go): Send email from Go 1.22+ with go get mailset.app/go: a context-aware client, typed structs, a net/http webhook handler, and mail from your own domain.
- [Send email from Ruby](https://mailset.app/send-email/ruby): Send email from Ruby 3.0+ with gem install mailset: send_email with keyword arguments, RBS types, webhook checks and mail from your own domain.
- [Send email from PHP](https://mailset.app/send-email/php): Send email from PHP 8.1+ with composer require mailset-app/php: an array in, a typed receipt out, webhook checks, and mail from your own domain.
- [Send email from Java](https://mailset.app/send-email/java): Send email from Java 17+: a builder for each message, a thread-safe client with an async twin, webhook checks, and no JavaMail session to configure.
- [Send email from Rust](https://mailset.app/send-email/rust): Send email from Rust 1.88+ with cargo add mailset: an async client on Tokio, a message builder, an Axum webhook handler and mail from your own domain.
- [Send email from Next.js](https://mailset.app/send-email/nextjs): Send email from a Next.js route handler or server action, and verify Mailset webhooks in app/api with request.text(). One package, no dependencies.
- [Send email from Express](https://mailset.app/send-email/express): Send email from an Express route with the Mailset SDK, and verify webhooks with express.raw() so the signature still matches. Run on Express 5.
- [Send email from NestJS](https://mailset.app/send-email/nestjs): Send email from a NestJS service with the Mailset SDK, and verify webhooks from req.rawBody with rawBody: true. Run on NestJS 11, typed end to end.
- [Send email from Cloudflare Workers](https://mailset.app/send-email/cloudflare-workers): Send email from Cloudflare Workers with the Mailset SDK: the key from env, fetch and WebCrypto only, webhooks verified from request.text(). Run in workerd.
- [Send email from FastAPI](https://mailset.app/send-email/fastapi): Send email from FastAPI with AsyncMailset or Mailset, and verify webhooks from await request.body() instead of a Pydantic model. Typed, Python 3.9+.
- [Send email from Django](https://mailset.app/send-email/django): Send email from a Django view with the Mailset SDK, and verify webhooks from request.body in a csrf_exempt view. Tested with Django’s own test client.
- [Send email from Flask](https://mailset.app/send-email/flask): Send email from a Flask route with the Mailset SDK and no Flask-Mail or SMTP settings, and verify webhooks from request.get_data(). Python 3.9+.
- [Send email from Rails](https://mailset.app/send-email/rails): Send email from Ruby on Rails with the mailset gem, and verify webhooks in a controller with request.raw_post and skip_forgery_protection.
- [Send email from Laravel](https://mailset.app/send-email/laravel): Send email from Laravel with the Mailset PHP SDK, queue sends safely with idempotency keys, and verify webhooks in routes/api.php.
- [Send email from Symfony](https://mailset.app/send-email/symfony): Send email from a Symfony controller with the Mailset PHP SDK, and verify webhooks from $request->getContent(). Run on real Symfony requests.
- [Send email from Spring Boot](https://mailset.app/send-email/spring-boot): Send email from Spring Boot without JavaMailSender or SMTP settings, and verify Mailset webhooks in a controller that takes the body as byte[].

## Send from your own domain

Your product sends as your own domain either way. What changes is where your team’s mail lives.

- **Sending only.** Your team’s mail stays at Google, Microsoft or wherever it is now. Mailset asks for DKIM, a bounce host and DMARC, and leaves your MX alone. [Send from a domain whose mail stays elsewhere](https://mailset.app/docs/recipes/sending-only)
- **Mailboxes too.** Your team’s mail moves to Mailset, with a real mailbox for every address on the domain and your product’s email on the same bill. [Set up a domain](https://mailset.app/guide/onboarding)

```bash
mailset domains add example.com --sending
mailset domains apply example.com --sending
mailset domains check example.com
mailset keys create --send --domain example.com --from hello@example.com --name "Acme API"
```

## Product email on every plan

Both include 10,000 emails a month, your product’s and your team’s together. Past that it’s $0.40 per 1,000 with pay as you go. Every plan and price: https://mailset.app/pricing

## Before you pick one

### Which languages have an SDK?

Seven: TypeScript, Python, Go, Ruby, PHP, Java and Rust. Plain JavaScript uses the TypeScript package, and any other language can call the [HTTP API](https://mailset.app/docs/authentication/http) with a signed request.

### Do the examples on these pages run?

Each one is a file its SDK’s own tests run, so a guide changes when the SDK does. The same files are on each SDK’s page in the docs.

### Can my code send over SMTP?

No. Your code sends over HTTPS, with an SDK or the HTTP API, and each call is signed with a key that sends only as the addresses it was made for.

## Try it on your own domain

7 days free, with everything on. Make a key, pick your guide and watch the first receipt come back. Start at https://mailset.app/start

---

© 2026 Intenseloop, Inc. Mailset’s site, docs and guides are copyrighted. You may read them and use their code to build with Mailset. Don’t republish them or use them to build a copy of Mailset. Terms: https://mailset.app/terms#content