mirror of
https://github.com/bitbaum/petvity.git
synced 2026-12-04 11:48:28 +01:00
Replace the bespoke Resend-SDK transport in lib/email/index.ts with the
fleet's shared @bitbaum/mail-kit. Contract preserved: {sent:false} when
mail is unconfigured or the recipient is an undeliverable fixture, throw
on provider API errors so the cron can mark queue rows failed. The
unconfigured gate is now mail-kit's isMailConfigured, which also rejects
placeholder keys and sandbox senders in production. Module-load FROM
replaced by call-time RESEND_FROM with the fleet-conventional fallback.
Transport tests now mock global fetch. Removes the resend dependency.
Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn
Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>