Skip to content

refactor(email): move transport to @bitbaum/mail-kit - #891

Merged
github-actions[bot] merged 1 commit into
mainfrom
refactor/mail-kit
Sep 5, 2026
Merged

refactor(email): move transport to @bitbaum/mail-kit#891
github-actions[bot] merged 1 commit into
mainfrom
refactor/mail-kit

Conversation

@catomean

@catomean catomean commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

Replaces the Resend-SDK singleton transport (src/lib/email/client.ts) with @bitbaum/mail-kit@^0.1.0: client.ts is now a thin adapter exposing a non-throwing sendEmail() and re-exporting isEmailConfigured() semantics from mail-kit (placeholder-key and production sandbox-sender both count as unconfigured), the three call sites (notification email service, dispatcher, seller payment notification) now inspect the send result instead of silently ignoring API errors, the sender SSOT moves from RESEND_FROM_EMAIL to RESEND_FROM with conventionalFrom("OrangeCat") as fallback, all templates are untouched, and the resend dependency is removed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn

Replace the Resend SDK singleton in src/lib/email/client.ts with the
fleet's @bitbaum/mail-kit: the module becomes a thin adapter exposing
sendEmail() (mail-kit sendMail — never throws, returns an honest
SendResult) and keeps the isEmailConfigured() name and call sites (the
placeholder-key guard now lives inside mail-kit, which also treats a
production sandbox sender as unconfigured). The three transport call
sites (notification emailService, dispatcher, seller payment
notification) now check result.sent instead of relying on the SDK
result they previously ignored — API-level failures were silently
swallowed before. Sender SSOT moves from RESEND_FROM_EMAIL to
RESEND_FROM (mail-kit env contract) with conventionalFrom('OrangeCat')
as fallback. Templates untouched. The resend dependency is removed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn
@github-actions
github-actions Bot merged commit 2cd1d44 into main Sep 5, 2026
6 checks passed
@github-actions
github-actions Bot deleted the refactor/mail-kit branch September 5, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant