Using Homail from another app

Install the SDK and configure future app integrations.

Install and configure

bash
pnpm add @shanehoban/homail

HOMAIL_BASE_URL=https://homail.shanehoban.com
HOMAIL_API_KEY=hm_live_<keyId>_<secret>
HOMAIL_FROM=noreply@homail.shanehoban.com

Integration pattern

  • Create one Homail project per app or environment.
  • Create a project API key with send scope only for normal SDK usage.
  • Store the key as a server-side environment variable.
  • Use the SDK from server code only; never from browser code.