Cookbook
Integrations
Stable
Outbound Email Safelist — Send Every Test Email to the Developer, Not Real People
An Action Mailer interceptor that auto-redirects every outbound email to one or more developer inboxes while the app is still being built, and appends a "this would have gone to <customer>" notice to the body so nobody is confused. Covers the reroute-don't-drop rule, multipart body rewriting, both registration methods, the EMAIL_SAFELIST env switch, and how to remove it on go-live.
Proven on leo-moozu.leo.llamapress.ai, leo-mezuli.leo.llamapress.ai
model · controller · view
Related
Cookbook
Twilio — SMS Sending & Phone Verification
Sibling recipe for the other outbound channel — same .env-key + container-recreate pattern, and it needs the same "don't text real people during testing" guard.
Link
Action Mailer interceptors — Rails Guides
Official reference for the delivering_email hook this recipe uses.