Skip to content
You're viewing documentation for v0.6.4. It may be out of date.Go to latest
Email SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

Install

Add @opencoredev/email-sdk to your project and run the email-sdk CLI.

Email SDK is published on npm as @opencoredev/email-sdk. It runs server-side on Node 20+ and Bun 1.1+.

npm install @opencoredev/email-sdk

Import the client from the package root and each adapter from its own entry point:

Run the CLI

Once @opencoredev/email-sdk is in your project, the email-sdk binary is on your path:

bunx email-sdk, pnpm exec email-sdk, and yarn email-sdk work the same way.

For a one-off check without touching a project, point bunx at the scoped package:

There is no safe no-install form for plain npx — the unscoped email-sdk package is unrelated — so npm users should install first.

Verify

adapters lists every supported provider with the environment variables it needs. To check that one provider is configured:

Keep credentials server-side

Provider API keys belong in environment variables (or CLI flags for one-off commands) — never in browser bundles or client-side code. The SDK is a server library by design.

Ready to send? Continue with the quickstart.

Last updated on