Skip to content

aiskillstore/marketplace / skills/aayushbaniya2006/email-handler

email-handler

Verified

Create and send transactional emails using React Email. Covers templates, layout integration, and sending logic.

FileKindSize
SKILL.mdskill md3.0 KB
reference.mdmarkdown832 B
skill-report.jsonconfig40.1 KB

reference.md

View on GitHub
# Email Architecture Reference

## Core Files
- **Templates**: `src/emails/*.tsx`
- **Base Layout**: `src/emails/components/Layout.tsx`
- **Sender Utility**: `src/lib/email/sendMail.ts`

## React Email Components
Common imports:
```tsx
import { 
  Html, 
  Button, 
  Text, 
  Heading, 
  Link, 
  Img, 
  Hr, 
  Container 
} from "@react-email/components";
```

## Sending Pattern
```typescript
const html = await render(Template({ prop: "value" }));
await sendMail(to, subject, html);
```

## Best Practices
1.  **Preview Text**: Always pass a `previewText` prop to `<Layout>`.
2.  **Type Safety**: Define explicit interfaces for Email Props.
3.  **Environment**: Use `process.env.NEXT_PUBLIC_APP_URL` for absolute links.
4.  **Styling**: Use `bg-primary`, `text-foreground`, `text-muted` to match app theme (defined in Layout).

slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall