@suluk/email - v0.2.0
    Preparing search index...

    Function pickProvider

    @suluk/email — the missing EmailProvider binding + a per-event/per-locale branded template set. The app RENDERS a message (pure, branded, localized via @suluk/i18n) and SENDS it through a swappable provider (consoleProvider in dev; a Workers-safe resendProvider in prod). Never a hosted mailer — the provider is a thin binding (the @suluk/builder email slot impl). CANDIDATE tooling.

    • Pick the provider the way saastarter's isLocal switch does: prod (a key + a from) ⇒ resend. In DEV (or no key) ⇒ a mailbox storeProvider when a sink is supplied (the mock-until-keyed local default — saves + inspectable), else the console provider (log-only).

      Parameters

      • opts: {
            dev: boolean;
            apiKey?: string;
            from?: string;
            costMicroUsd?: number;
            sink?: MailboxSink;
        }

      Returns EmailProvider