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
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:
- Stores the inbound email JSON
- POSTs to the webhook endpoint (default:
/webhooks/resend) - 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:
bin/rails resend_robot:outbox
Then reply to it:
bin/rails "resend_robot:reply[2,I have a question about this]"
Send from a specific address
bin/rails "resend_robot:receive[stranger@gmail.com,,Question about something,Is this available?]"
Arguments: [from, to, subject, body]
- If
tois empty andreply_domainis configured, Resend Robot auto-generates acold-{hex}@{reply_domain}address - The
toaddress 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-readto verify ->/resend-robot-sendto 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 |