feat(mail): add Resend API transport

This commit is contained in:
shira committed 2026-10-06 02:38:17 +03:00
1 parent 1aa7a9feaf
commit c85b642d32
13 files changed
+1387 -63

No files matched your search

+8 -6
View File
@@ -20,17 +20,19 @@ SEAWEEDFS_BUCKET=lincodex
KAFKA_CLUSTER_ID=SJv4PXUUSJGbK3eSPC57qA
# Mail. EMAIL_PROVIDER is required and selects exactly one transport:
# resend, smtp, or disabled. The working stand uses resend; this build has no
# Resend or SMTP transport yet, so both fail startup after their settings are
# validated. disabled sends nothing and reports the mail channel as
# unavailable; it never confirms an address or skips an account check.
# resend, smtp, or disabled; there is no default. resend sends through the
# Resend HTTP API and the working stand sets it explicitly. This example sets
# disabled so that local runs need no key. This build has no SMTP transport
# yet, so smtp fails startup after its settings are validated. disabled sends
# nothing and reports the mail channel as unavailable; it never confirms an
# address or skips an account check.
EMAIL_PROVIDER=disabled
EMAIL_FROM=no-reply@example.com
EMAIL_TIMEOUT=10s
# Public origin for links in mail: https, or http only for a loopback host.
APP_PUBLIC_URL=http://localhost:8080
# Read only when EMAIL_PROVIDER=resend. Keep the real key in the server
# environment only.
# Read only when EMAIL_PROVIDER=resend, where it is required. Keep the real
# key in the server environment only; it is never logged.
RESEND_API_KEY=
# Read only when EMAIL_PROVIDER=smtp. SMTP_TLS_MODE is starttls or tls;
# plaintext SMTP is not supported.