HavenPay provisions verified sending domains and email identities on your behalf. Send transactional, OTP, marketing, and notification emails — all from billing@yourdomain.co.ke, not a shared IP.
Multi-gateway routing across Resend, SendGrid, Mailgun, Amazon SES, and SMTP. Full delivery tracking, webhook events, template management, and scheduled broadcasts — all in one platform.
Hi John,
Your June invoice is ready. Please pay by 25 June 2024 to avoid service interruption.
Choose HavenPay-managed setup (we handle everything) or self-managed (bring your own ESP credentials and go live instantly).
HavenPay configures the ESP, generates DNS records, and activates once verified. Typical turnaround: 1–3 business days.
Already have a verified domain at Resend, SendGrid, Mailgun, SES, or SMTP? Supply credentials and go live with no admin review.
HavenPay has received your request and is verifying the domain and use-case.
Internally approved. HavenPay is configuring DKIM/SPF with the upstream ESP.
DNS records issued. Publish them in your domain registrar and wait for propagation.
Verified and live. You can start sending immediately from this identity.
Every message is tagged with a category. Pricing, routing priority, and tracking behaviour adjust automatically.
Receipts, invoices, password resets — triggered by user action.
Newsletters, campaigns, promotions — outbound to opted-in subscribers.
One-time passwords and verification codes — lowest latency route.
System alerts, status updates, service notifications.
Default platform prices in KES. Custom per-merchant pricing available — contact HavenPay to negotiate volume rates.
All sends route through the same gateway failover pipeline — picked up from priority-ordered active routes.
One HTML/text email to a single recipient. Supports html_body, text_body, category, and identity selection.
Send via gateway-hosted templates. Resend UUIDs, SendGrid d-XXXXXXXX IDs, Mailgun template names.
Broadcast to up to 5,000 recipients in one call. Supports both raw body and gateway templates.
Store reusable HTML email templates under your account. Render them on the fly with variable substitution, preview before sending, and wire them into scheduled campaigns.
The complete endpoint reference — CRUD, preview, and test-send — lives in the developer docs. Seven endpoints covering every template operation.
View API docsHavenPay maintains a priority-ordered list of active email routes. Each send attempt walks the list until one gateway succeeds. Gateway credentials are Fernet-encrypted at rest.
Routes are tried in ascending priority order. If a gateway returns an error or throws an exception, HavenPay logs the failure, increments the route's total_failed counter, and moves to the next available route transparently.
Each gateway route stores up to three credentials (API keys, secrets, regions) encrypted with Fernet symmetric encryption using your SECRET_KEY. Credentials are decrypted only at dispatch time and never logged.
Each gateway route records its cost per category (transactional, marketing, OTP, notification). Every message tracks both cost_to_platform (gateway cost) and charged_to_merchant (your price), enabling margin reporting.
HavenPay receives signed webhook events from Resend, SendGrid, Mailgun, and Amazon SES. Status only advances — it never regresses. Bounces and complaints are always recorded.
Query your full message history, filter by status or batch, pull aggregate open/click/bounce stats, and retrieve your current per-category pricing — all documented in the API reference.
View API docsCommEvent lets you define named events that fire email (and SMS / WhatsApp) on a schedule. Templates are rendered at fire time with variable substitution. Full execution history and audit log included.
Fires every day at a specified HH:MM UTC time.
Fires on a specific day of the week (0=Mon, 6=Sun) at a given time.
Fires on a specific day of the month. Clamped to last day if month is short.
Raw 5-field cron expression. No external dependency — scanned in-process.
DNS propagation typically takes 24–48 hours. Once the upstream ESP verifies your records, we activate your identity immediately — or use self-managed mode to skip the queue entirely.
Register your sending identity and be live in days. Self-managed mode activates instantly.