Skip to content
@ElasticEmail

Elastic Email

Elastic Email is an affordable email delivery service to grow your audience, create stunning newsletters, and send emails via robust and scalable API or SMTP

Elastic Email: Email API, SMTP, marketing tools and developer infrastructure

Email API and SMTP for developers. Clone a starter, add your API key, send a real email in five minutes.

API docs Examples X (Twitter)

Starters • SDKs • Tools • AI agents • Blog • Support


Start from a working project

Pick one, clone it, run it. Each starter sends a real email on the first run and is a complete app you can build on.

Starter What you get Stack
Next.js app API routes for sending, batch sends, attachments, templates, webhooks, inbound email and double opt-in, with a page per feature TypeScript, Next.js 15
Python web app The same /send API in Flask, FastAPI and Django, plus a single-file script for every feature Python 3
AI agent that sends email A Claude agent with a send_email tool and a recipient allowlist, so it can only send where you let it TypeScript, Vercel AI SDK

Before you run one: create an account, verify your sending domain (Elastic Email only sends from verified domains) and create an API key under Settings → Manage API Keys.

git clone https://github.com/ElasticEmail/elasticemail-examples.git
cd elasticemail-examples
Next.jsPythonAI agent
cd nextjs-elasticemail-examples/typescript
npm install
cp .env.example .env
npm run dev
cd python-elasticemail-examples
python -m venv venv && source venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
python examples/fastapi_app.py
cd ai-agents-elasticemail-examples/vercel-ai-sdk
npm install
cp .env.example .env
npm start

Put your API key and a sender on your verified domain in .env. Each starter's QUICKSTART.md covers the rest. Express, Laravel, Go, Rust, .NET, SvelteKit, serverless and 20+ other stacks are in elasticemail-examples.

No project yet? Send with curl
curl -X POST https://api.elasticemail.com/v4/emails/transactional \
  -H "X-ElasticEmail-ApiKey: $ELASTICEMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "Recipients": { "To": ["recipient@example.com"] },
    "Content": {
      "From": "you@your-domain.com",
      "Subject": "Hello from Elastic Email",
      "Body": [{ "ContentType": "HTML", "Content": "<p>It works!</p>" }]
    }
  }'

Official SDKs

Every SDK wraps the same REST API v4, so the same endpoints and models are available in every language.

Language Repository Install Package
C# / .NET elasticemail-csharp dotnet add package ElasticEmail NuGet
PHP elasticemail-php composer require elasticemail/elasticemail-php Packagist
Python elasticemail-python pip install ElasticEmail PyPI
JavaScript / Node.js elasticemail-js npm install @elasticemail/elasticemail-client npm
TypeScript (axios) elasticemail-ts-axios npm install @elasticemail/elasticemail-client-ts-axios npm
Angular elasticemail-ts-angular npm install @elasticemail/elasticemail-client-ts-angular npm
Java elasticemail-java Maven / Gradle, see README Release
Go elasticemail-go go get github.com/elasticemail/elasticemail-go/v4@latest Release
Ruby elasticemail-ruby gem install ElasticEmail RubyGems
Rust elasticemail-rust cargo add ElasticEmail crates.io
Perl elasticemail-perl cpanm --installdeps . Release
Bash elasticemail-bash Clone the repo, see README Release

Tools and integrations

Project What it does
elasticemail-cli Command-line tool for sending email and campaigns and managing templates, contacts and domains. npm install -g elastic-email-cli
elasticemail-send-email-action GitHub Action that sends email from a workflow, for example build reports or release notes. uses: ElasticEmail/elasticemail-send-email-action@v1
elasticemail-mautic-mailer Mautic plugin for sending campaigns, segment emails and transactional mail through Elastic Email.

AI agents

Project What it does
elasticemail-mcp-server MCP server that lets AI agents (Claude, Cursor, VS Code and others) send email and work with your Elastic Email account.
elasticemail-skills Agent skills that teach coding assistants the Elastic Email API. npx skills add ElasticEmail/elasticemail-skills

From the blog

More on the Elastic Email blog.

Support

Important

The fastest way to get help is the chat widget on elasticemail.com. Our support team can help with your account, sending, deliverability and API questions.

Contributing

Pull requests are welcome in every public repository. Please read our contributing guide (or the repository's own CONTRIBUTING.md) and follow our Code of Conduct. To report a security vulnerability, follow our security policy and don't open a public issue.

Note

The ElasticEmail.WebApiClient-* repositories contain the legacy API v2 clients. They are archived and no longer maintained. New projects should use the v4 SDKs above.

Made with ❤️ by the Elastic Email team

Pinned Loading

  1. elasticemail-python elasticemail-python Public

    Official Python SDK for the Elastic Email REST API v4. Send transactional and marketing emails, and manage contacts, lists, templates, campaigns, domains and webhooks. Available on PyPI.

    Python 9 4

  2. elasticemail-csharp elasticemail-csharp Public

    Official C# / .NET SDK for the Elastic Email REST API v4. Send transactional and marketing emails, and manage contacts, lists, templates, campaigns, domains and webhooks. Available on NuGet.

    C# 16

  3. elasticemail-js elasticemail-js Public

    Official JavaScript / Node.js SDK for the Elastic Email REST API v4. Send transactional and marketing emails, and manage contacts, lists, templates, campaigns, domains and webhooks. Available on npm.

    JavaScript 8 1

  4. elasticemail-php elasticemail-php Public

    Official PHP SDK for the Elastic Email REST API v4. Send transactional and marketing emails, and manage contacts, lists, templates, campaigns, domains and webhooks. Available on Packagist.

    PHP 14 12

  5. elasticemail-examples elasticemail-examples Public

    Real-world Elastic Email examples for transactional email, SMTP, webhooks, inbound email, contacts, serverless platforms and AI coding agents across 20+ languages and frameworks.

    TypeScript 22

  6. elasticemail-cli elasticemail-cli Public

    Official CLI for Elastic Email: send email and campaigns, manage templates and contacts. Interactive TUI or --json for scripts.

    TypeScript 12

Repositories

Showing 10 of 28 repositories

Top languages

Loading…

Most used topics

Loading…