> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sendrealm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sendrealm Email Skill

> Help AI agents build Sendrealm email integrations.

Use `sendrealm-email` when an agent needs to add, review, or debug outbound email with Sendrealm. The skill is modeled after concise email-provider skills, but follows Sendrealm's SDK and API reference behavior.

## What It Covers

* Installing and using `@sendrealm/sdk` from trusted backend code.
* Storing `SENDREALM_API_KEY` server-side.
* Sending email with API-required `from`, `to`, `subject`, and `text`.
* Adding optional `html`, `cc`, `bcc`, `reply_to`, `attachments`, `headers`, and `tags`.
* Creating and publishing Sendrealm email templates for broadcasts and automations.
* Handling typed SDK errors such as `APIError` and `RateLimitError`.
* Avoiding Resend-specific patterns that Sendrealm does not expose.

## Use It

```text theme={null}
Use $sendrealm-email to add a transactional welcome email with Sendrealm.
```

The skill should ask for missing sending-domain, sender, recipient, copy, and credential-storage details instead of inventing them.

## Guardrails

* Never put `SENDREALM_API_KEY` in browser or mobile code.
* Do not copy Resend's Node pattern of returning `{ data, error }`; Sendrealm throws typed SDK errors.
* Do not claim direct email sends support email idempotency keys unless the installed SDK or API reference exposes that feature.
* Do not invent direct-send `template_id` behavior. Direct sends use body content; templates are reusable assets for Sendrealm workflows.

## Source Docs

* [JavaScript SDK](/sdks/javascript)
* [Send Email API](/api-reference/endpoint/create)
* [Templates](/tutorials/templates)
* [Create Template API](/api-reference/endpoint/create-template)
* [Publish Template API](/api-reference/endpoint/publish-template)
* [API Keys](/tutorials/api-keys)
* [Domains](/tutorials/domains)
