# Resend Robot Send

> Simulate receiving an inbound email in dev. Sends through the app's webhook pipeline via Resend Robot's local shim.

- Skill: `garrytan/resend-robot-send` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add garrytan/resend-robot-send`
- Raw SKILL.md: https://api.skillmd.com/api/skills/garrytan/resend-robot-send/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: garrytan (https://skillmd.com/u/garrytan)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/garrytan/resend-robot-send

---


# Send Dev Email (Simulate Inbound)

You are running the `/resend-robot-send` workflow. Use Resend Robot to simulate receiving an inbound email through the app's webhook pipeline.

## Commands

### Reply to most recent outbound email

```bash
bin/rails "resend_robot:reply[0,Thanks for the email!]"
```

This finds the most recent outbound email, uses its recipient as `from` and its reply-to address as `to`, then:
1. Stores the inbound email JSON
2. POSTs to the webhook endpoint (default: `/webhooks/resend`)
3. The app's webhook controller processes it through the normal pipeline

The first argument is the index (0 = most recent, 1 = second most recent, etc.).

### Reply to a specific outbound email

First find the email index:

```bash
bin/rails resend_robot:outbox
```

Then reply to it:

```bash
bin/rails "resend_robot:reply[2,I have a question about this]"
```

### Send from a specific address

```bash
bin/rails "resend_robot:receive[stranger@gmail.com,,Question about something,Is this available?]"
```

Arguments: `[from, to, subject, body]`

- If `to` is empty and `reply_domain` is configured, Resend Robot auto-generates a `cold-{hex}@{reply_domain}` address
- The `to` address should match your app's inbound email domain for the webhook controller to accept it

## Common Patterns

- **Reply to last email:** `resend_robot:reply[0,Thanks! Got it.]`
- **Cold inbound:** `resend_robot:receive[stranger@gmail.com,,Question,Is this available?]`
- **Test full cycle:** Send email via app -> `/resend-robot-read` to verify -> `/resend-robot-send` to reply -> check app state

## Important

- The dev server must be running (`bin/dev`) for inbound simulation to work
- All inbound emails go through the REAL app webhook pipeline (same code path as prod)
- If your app processes inbound emails asynchronously, poll for completion after sending

## Rake Tasks Reference

| Task | Description |
|------|-------------|
| `resend_robot:reply[INDEX,BODY]` | Reply to the Nth most recent outbound email |
| `resend_robot:receive[FROM,TO,SUBJECT,BODY]` | Simulate receiving an email from a specific address |
| `resend_robot:outbox` | List recent outbound emails |
| `resend_robot:clear` | Delete all stored emails |

