Skip to content
Impulse SoftwareDOCS
Get modules

ImpulseMail

Verified for ImpulseMail 0.2.0 ·

The client area & Send API

Every active ImpulseMail service gets a white-labeled transactional email console inside the WHMCS client area organized into 6 top-level tabs with focused sub-tabs:

  • Overview — sending status, onboarding checklist, monthly quota & 30-day chart, one-click test send, and copyable API/SMTP endpoints (587, 2525, 8025, 8465 STARTTLS and 465 SSL/TLS).
  • Domains — Domains & DNS (Unified Domain DNS Hub, 1-click Domain Connect, DMARC aggregate reports, domain quota meter) and Brand Logo (BIMI).
  • Activity — Messages (event feed, scheduled queue, message preview & resend) and Suppressions.
  • Developers — API & SMTP (credentials), Templates, and Webhooks (outbound webhooks & inbound email parsing).
  • Settings — General (From name, timezone, tracking), Security, and Maintenance.
  • Help — Help & Docs (interactive code examples & API reference) and Migrate Provider (guided zero-downtime ESP migration assistant).

The Overview tab displays the service’s current sending status and risk badge (Sandbox, Review, or Approved · Production), a collapsible three-step onboarding checklist, live monthly quota progress (Sent, Delivered %, Bounced %, Complained %), a one-click Send a test email tool to the account owner’s address, and copyable SMTP (587, 2525, 8025, 8465 STARTTLS and 465 SSL/TLS on connect) and HTTP API endpoints.

ImpulseMail client area Overview tab with the 6-tab navigation bar, dark hero and copyable endpoint pill, Approved Production status badge, monthly quota progress tiles, 30-day sending volume sparkline and per-domain breakdown, and full STARTTLS and SSL/TLS SMTP connection details

2. Domains, 1-click Domain Connect, List-Unsubscribe & self-service DKIM rotation

Section titled “2. Domains, 1-click Domain Connect, List-Unsubscribe & self-service DKIM rotation”

Under Domains → Domains & DNS, customers see their live domain quota meter, add sending domains (guarded against restricted domains and verified-elsewhere duplicates), and verify DNS ownership using a compact copy-ready DNS table with full and short host names (so providers that auto-append the domain name never double it):

  • Ownership TXT (_impulsemail-verify.<domain>) — proves domain ownership before activation
  • DKIM CNAME (im._domainkey.<domain> → operator DKIM target)
  • Bounce Return-Path CNAME (imbounces.<domain> → rp-<server_uid>.<mail_base_domain>)
  • SPF & DMARC TXT recommendations (include:spf.<mail_base_domain> and _dmarc.<domain>)

When automated DNS setup is available, customers can skip manual record entry:

  • 1-click Domain Connect (no API keys required) — when you complete the one-time Domain Connect setup, ImpulseMail automatically queries _domainconnect.<domain> for each customer domain. Whenever the customer’s DNS provider (GoDaddy, Cloudflare, IONOS, Porkbun, Squarespace, Name.com, Hostinger, or WordPress.com) supports your synced template, a 1-click Connect button appears. Clicking it opens a signed RSA-2048 Domain Connect consent prompt at the customer’s DNS host to publish DKIM, Return-Path, and optional DMARC records automatically and redirects back to WHMCS.
  • Synced DMARC policy picker & live verification status — customers can choose their desired DMARC policy (Monitor p=none, Quarantine p=quarantine, or Reject p=reject) right on the DNS setup screen. Switching the policy stays synced in real time across the server-signed Connect & add DMARC Domain Connect button, the WHMCS Managed Registrar and provider API auto-setup forms (which protect existing _dmarc records by default unless Update existing DMARC is checked), the manual DMARC TXT value and copy button, and the collapsible BIND zone file snippet. Once _dmarc.<domain> is published in live DNS, the row flips from Optional to green Verified and displays the active policy pill (p=none (monitor) with upgrade guidance, or green p=quarantine / p=reject when enforced).
  • 1-click provider API & WHMCS registrar setup (Unified Domain DNS Hub) — right at the top of Domains → DNS setup, customers check which capabilities they intend to use on that domain (Outbound Sending & DMARC, Brand Logo BIMI, Custom Tracking Domain CNAME, and Inbound Email Parsing MX 10). All selected records appear together in a single DNS table (with live verification badges and a Short/Full host toggle) and are published in one single click via a DNS-capable WHMCS registrar or an ephemeral one-time token for Cloudflare, Porkbun, DigitalOcean DNS, or Hetzner DNS (never stored or logged) — or copied together as a single BIND zone snippet. Brand Logo (BIMI), Settings (Tracking), and Webhooks (Inbound) link directly back into this unified DNS hub so customers never have to duplicate DNS tokens across tabs.

Every verified domain also provides two production deliverability controls:

  • Per-domain List-Unsubscribe header mode (off, mailto, or oneclick) — injects RFC 2369 / RFC 8058 List-Unsubscribe and List-Unsubscribe-Post: List-Unsubscribe=One-Click headers automatically to meet Gmail and Yahoo bulk-sender requirements.
  • Self-service Rotate DKIM key — generates a fresh DKIM keypair on the mail server and updates the operator’s configured DNS provider’s DKIM target TXT record in place. Because the customer’s im._domainkey record is a CNAME pointing to your DKIM target, key rotation completes with zero customer DNS changes.
  • Built-in DMARC aggregate (rua) reports viewer — every mail server accepts daily RFC 7489 DMARC XML, .xml.gz, and .zip reports sent to dmarc@rp-<server_uid>.<mail_base_domain>, parses them safely (with strict 2 MiB decompression and XML entity guards), and displays DMARC/DKIM/SPF pass rates, reporting mailbox providers, and top sending source IPs directly in the Domains tab (and via GET /v1/dmarc/reports).

ImpulseMail client area Domains tab showing verified sending domains, the domain quota meter, contextual Migration Assistant nudge, and the built-in DMARC aggregate reports viewer with copyable rua TXT record, pass-rate KPI tiles, and per-provider report table

ImpulseMail client area Unified Domain DNS Hub showing feature selection with synced DMARC policy selector, Detected DNS provider GoDaddy, live Ownership TXT, DKIM, Return-Path, and Verified DMARC records with Short and Full host toggle, and Rotate DKIM key control

3. SMTP & API credentials (scoping, IP allowlisting & security architecture)

Section titled “3. SMTP & API credentials (scoping, IP allowlisting & security architecture)”

Under Credentials, customers mint scoped SMTP credentials and HTTP API keys behind WHMCS account password step-up:

  • Revealed once — raw secrets are shown a single time on creation; WHMCS stores only metadata, key prefixes, and restriction labels, while mail servers store only SHA-256 hashes.
  • Clean & custom SMTP usernames + inline Rename (Change username) drawer — new SMTP credentials default to clean domain-based usernames (smtp@<domain> or <label>@<domain>) or an opaque im_smtp_<hex> identifier, and customers can optionally enter a custom SMTP username inside the tabbed SMTP credential | API key creator. Existing SMTP rows include a flush-aligned Rename button that opens a full-width inline drawer to change username behind WHMCS account password step-up: ImpulseMail performs an overlap-safe mint-before-revoke swap on the mail server so active mail delivery is not interrupted while preserving existing domain and IP restrictions.
  • Permission scopes (send vs. full) — send keys can only call /v1/send and /v1/send/batch; full keys also access domains, suppressions, and event queries.
  • Domain-scoped credentials (allowed_domains) — optionally restrict an API key or SMTP credential to one or more specific verified domains on the service (for example billing.acme.example), enforced across both the HTTP gateway (403 domain_not_allowed_for_credential) and SMTP submission (550 at MAIL FROM and From header) so a compromised microservice key cannot send from unrelated company domains.
  • Per-credential IP / CIDR allowlisting (allowed_ips) — optionally lock an API key or SMTP credential to up to 25 IPv4/IPv6 addresses or CIDR blocks (such as 203.0.113.10, 198.51.100.0/24, 2001:db8::/32). Requests from any unlisted source IP are rejected immediately on every authenticated HTTP API route (403 ip_not_allowed, using the real peer address behind nginx so X-Forwarded-For cannot be spoofed) and during SMTP AUTH (with dual-stack IPv4-mapped IPv6 unwrapping). Leave the field blank to allow any IP.

ImpulseMail client area Credentials tab showing clean domain-based SMTP usernames with Change username and Revoke controls, Full and Send-only API keys with Allowed domains and Allowed IPs restriction badges, and the Create a credential forms with optional SMTP username, Allowed domains, and Allowed IPs / CIDRs fields

How credentials & sending work (operator security architecture)

Section titled “How credentials & sending work (operator security architecture)”

When you run ImpulseMail as a standalone WHMCS operator, WHMCS acts strictly as the control plane and stays completely outside the sending data plane:

  1. Minting (WHMCS → Mail Server Admin Proxy): After verifying the customer’s WHMCS account password, WHMCS calls POST /admin/v1/credential/create on the tenant’s assigned mail server over SPKI-pinned TLS on port 9098 (firewall-restricted to your WHMCS server IP(s)).
  2. Hash-only storage on the mail server: The Admin Proxy generates the cryptographically random secret (imk_... or SMTP password) in memory, passes only its SHA-256 hash to the local control broker, and writes /etc/impulsemail/tenants/t_<service_id>/credentials/c_<id>.json (0640) alongside an atomically rebuilt O(1) lookup index at /etc/impulsemail/tenants/.cred-index.json. No plaintext customer secret is ever written to disk on the mail server.
  3. Metadata-only storage in WHMCS: The Admin Proxy returns the raw secret to WHMCS once so the client area can display it in the one-time reveal card. WHMCS’s mod_impulsemail_credentials table records only metadata (kind, scope, username, key_prefix, label, allowed_domains, allowed_ips, and the box_credential_id revoke handle) — zero plaintext customer-minted API keys or SMTP passwords are stored in the WHMCS database.
  4. Direct sending (Customer App → Mail Server): When the customer’s application sends via POST https://<gateway>/v1/send (Bearer token) or SMTP (:587 STARTTLS / :465 TLS), traffic goes straight to the mail server. The HTTP gateway and SMTP engine hash the presented credential with SHA-256 and verify it in O(1) time against .cred-index.json, enforcing scope, allowed_domains, and allowed_ips locally. Because WHMCS is not in the sending path, customer email continues delivering uninterrupted even during WHMCS maintenance or upgrades.
  5. Instant revocation: Revoking a credential in the client area (requiring typed REVOKE confirmation) calls the mail server to delete c_<id>.json and atomically rebuild .cred-index.json. Both HTTP API and SMTP reject the revoked credential immediately.

Under Templates, customers create, update, inspect, and delete reusable server-side email templates (up to 50 templates per service, 256 KB max each):

  • Safe Mustache placeholders — use {{variable}} (including dotted paths like {{user.name}}) for automatically HTML-escaped values in HTML bodies, or {{{raw_html}}} when inserting trusted HTML fragments.
  • Send by slug — pass template_id and template_vars to POST /v1/send or POST /v1/send/batch to render subject, HTML, and plain-text bodies server-side.
  • Programmatic CRUD — Full-scope API keys can also manage templates via GET /v1/templates, GET /v1/templates/{slug}, POST /v1/templates, and DELETE /v1/templates/{slug}.

ImpulseMail client area Templates tab showing saved Mustache templates with View source and Delete actions, the Create or update template editor form, and the copyable curl usage example

5. HTTP Send API (/v1/send, /v1/send/batch, streams, scheduled sending & tracking)

Section titled “5. HTTP Send API (/v1/send, /v1/send/batch, streams, scheduled sending & tracking)”

The API & Help tab is organized into five instant sub-panes (Quick Start, Code Examples, Send API, Events & Management API, and Deliverability & FAQ) with an interactive language and framework switcher (cURL, Node.js, PHP, Python, Go, Webhook HMAC, WordPress, Laravel):

  • Single send (POST /v1/send) — accepts from, to (string or array), optional cc, bcc, reply_to, subject, text, html, template_id + template_vars, custom headers, optional Idempotency-Key, and validated attachments (base64-encoded files with filename/content-type/size checks and dangerous executable/script extension blocking).
  • Batch send (POST /v1/send/batch) — submit up to 50 messages per HTTP call in a messages array, returning per-item acceptance/rejection status and supporting per-message idempotency_key values.
  • Separate message streams (stream) — choose "transactional" (default; stamps Auto-Submitted: auto-generated) or "broadcast" (omits Auto-Submitted, auto-injects List-Unsubscribe, and tags Feedback-ID and X-Impulse-Stream: broadcast — also honored over SMTP via the X-Impulse-Stream: broadcast header).
  • Scheduled sending (send_at) — pass an ISO-8601 UTC timestamp or Unix epoch between 60 seconds and 72 hours in the future. Messages are validated upfront, staged safely on-box, visible under GET /v1/scheduled (and in Activity), cancellable prior to dispatch via DELETE /v1/messages/{message_uid}/schedule, and re-checked against tenant fences, pauses, and suppressions at dispatch time.
  • Opt-in open & click tracking (track_opens, track_clicks) — off by default for recipient privacy. Enable service-wide defaults under Settings → Open & click tracking (with an optional custom tracking_domain CNAME pointing to your gateway host) or override per message. Tracking applies to single-recipient HTML emails only, uses HMAC-signed stateless tokens (/t/o/{token}.gif and /t/c/{token}), skips data-no-track, mailto:, and /u/ links, and records opened and clicked events into Activity and webhooks.
  • Standard rate-limit headers — every send response includes RateLimit-Limit, RateLimit-Remaining, and RateLimit-Reset headers (plus Retry-After on 429 throttling) so SDKs and queue workers can back off cleanly.
POST https://send.mail-dfw-1.example.com/v1/send
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Idempotency-Key: welcome-1042
{
"from": "[email protected]",
"template_id": "welcome-onboarding",
"template_vars": {
"company": "Acme",
"user": { "name": "Alice" },
"cta_url": "https://app.acme.example/start"
},
"stream": "transactional",
"send_at": "2026-12-01T15:00:00Z",
"track_opens": true,
"track_clicks": true
}

ImpulseMail client area API and Help tab showing the five instant sub-panes (Quick Start, Code Examples, Send API, Events and Management API, Deliverability and FAQ) and the interactive Code Examples switcher for cURL, Node.js, PHP, Python, Go, Webhook HMAC, WordPress, and Laravel

6. Activity feed, scheduled queue, message preview & resend

Section titled “6. Activity feed, scheduled queue, message preview & resend”

Under Activity, customers manage pending scheduled sends (with one-click Cancel), filter recent events by type (Delivered, Opened, Clicked, Scheduled, Bounced, Complaints, Deferred, Suppressed, Rejected, Inbound), exact recipient address, or date range, and export CSVs behind account password verification.

Clicking View (imail_msg=<uid>) opens the full lifecycle timeline for a message. When content retention is enabled on the customer’s plan, the timeline also offers:

  • Preview message — behind WHMCS account password step-up, decrypts and renders the escaped headers, plain-text body, and collapsible HTML source.
  • Resend message — re-queues the retained message with a fresh message_uid, Date, and Message-ID after re-checking suppressions (also available programmatically via POST /v1/messages/{message_uid}/resend with a Full-scope key).

ImpulseMail client area Activity tab displaying the Pending scheduled messages card with Cancel control, expanded event-type filter chips including Opened, Clicked, Scheduled, and Inbound, delivery and engagement status rows, and per-message View timeline links

7. Suppressions, webhooks & inbound email parsing

Section titled “7. Suppressions, webhooks & inbound email parsing”
  • Suppressions — automatically records hard bounces, spam complaints, one-click unsubscribes, and escalated soft bounces (after repeated multi-day deferrals) so future sends to dead addresses are blocked before touching remote MX servers. Customers can search, add manual suppressions, import CSV lists, or explicitly release entries (hard-bounce releases require confirmation).
  • Outbound webhooks — customers configure HTTPS endpoints for real-time delivered, bounced, complained, suppressed, opened, clicked, scheduled, and cancelled events with HMAC-SHA256 signing secrets (X-Impulse-Timestamp + X-Impulse-Signature), SSRF protection (HTTPS + public IPs only), delivery health tracking, and a Send test button.
  • Inbound email parsing — under Webhooks → Inbound email parsing, customers dedicate a subdomain (such as inbound.acme.example), publish the copyable MX 10 record pointing to their mail server, and enter a public HTTPS webhook URL. Incoming mail on port :25 for that domain is parsed into a normalized JSON payload (from, to, cc, subject, message_id, in_reply_to, text, html, and safe base64 attachments up to 5 MB total, automatically skipping dangerous executable extensions) and delivered via the same SSRF-guarded, HMAC-SHA256 signed webhook dispatcher (X-Impulse-Event: inbound).

ImpulseMail client area Webhooks tab showing configured outbound webhook endpoints with Opened and Clicked event subscriptions alongside the Inbound email parsing configuration card and copyable MX record

Under Domains → Brand Logo (BIMI), customers get a dedicated three-tier self-service workspace to display their verified brand logo next to authenticated emails in Gmail, Apple Mail, Yahoo, and Fastmail:

  • Live 4-gate BIMI readiness dashboard & provider matrix — switches across all sending domains on the service, evaluates four live checks (0–100% score: enforced DMARC p=quarantine/p=reject at 100%, published default._bimi.<domain> TXT record, hosted SVG Tiny PS logo compliance, and Mark Certificate VMC/CMC status), and shows real-time eligibility across Gmail, Gmail Blue Checkmark, Apple Mail, and Yahoo & Fastmail.
  • Hosted BIMI Assets & SVG Tiny PS Auto-Sanitizer — customers can upload (or paste) any .svg logo and optional VMC/CMC .pem certificate directly in the Brand Logo (BIMI) tab. ImpulseMail rejects XXE declarations, automatically strips disallowed scripts/events/external references/comments, injects version="1.2", baseProfile="tiny-ps", viewBox, and <title>, verifies the <= 32 KB limit and X.509 expiry, and hosts both assets over HTTPS directly on the tenant’s mail gateway (https://<gateway>/t/bimi/<tenant>/<domain_uid>/logo.svg & cert.pem with strict image/svg+xml, X-Content-Type-Options: nosniff, and SVG Content-Security-Policy sandbox headers). Hosted URLs automatically pre-fill the DNS record builder below.
  • BIMI TXT preview, live asset validator & one-click jump to Domain DNS Hub — live-updates copyable Short host (default._bimi), Full host (default._bimi.<domain>), and v=BIMI1; l=...; a=...; TXT values. Clicking Validate SVG & Certificate URLs performs an SSRF-hardened live HTTPS fetch before DNS publishing, and Publish in Domain DNS Hub jumps straight to Domains → DNS setup with BIMI pre-selected (automatically recommending enforced DMARC p=quarantine/p=reject) to publish all records in one pass.
  • Mark Certificate guide & operator upsell CTA — compares VMC (trademark required, unlocks Gmail + Blue Checkmark + Apple Mail), CMC (prior-use logo, unlocks Gmail without the blue checkmark), and free Apple Business Connect, and displays an optional Order VMC / CMC Certificate button linking either to a WHMCS Product/Addon (cart.php?...) or an external partner URL configured by the operator under Admin → Deliverability → BIMI.

ImpulseMail client area Brand Logo BIMI workspace showing the 75 percent readiness score, 4 live checks, mailbox provider eligibility matrix, Hosted BIMI Assets and SVG Tiny PS Auto-Sanitizer, BIMI TXT preview, and Mark Certificate upsell card

9. Guided Provider Migration Assistant (Help → Migrate Provider)

Section titled “9. Guided Provider Migration Assistant (Help → Migrate Provider)”

Under Help → Migrate Provider (and linked contextually whenever a customer adds a sending domain under Domains), ImpulseMail guides customers through a zero-downtime migration from SMTP2GO, SendGrid, Postmark, Mailgun, Amazon SES, Resend, Brevo, or any other SMTP/API provider:

  1. Live DNS scan: inspects the customer’s existing SPF and DMARC records read-only, identifies current ESP includes, highlights corporate mail includes to preserve (such as Microsoft 365 or Google Workspace), counts SPF DNS lookups, and confirms zero-downtime dual-run safety.
  2. Add & verify domain side-by-side: verifies ImpulseMail DKIM and Return-Path alongside the legacy provider before any app traffic moves.
  3. Import suppressions (CSV/TXT or one-time API pull): drag-and-drop or paste CSV/TSV/plain-text suppression exports (auto-detecting columns across major ESPs, deduplicating, up to 2,000 addresses per batch), or run a one-time ephemeral API pull directly from SMTP2GO, SendGrid, or Postmark (pinned vendor endpoints; the legacy API key is used once in memory and never stored or logged) to prevent Day-1 bounce spikes.
  4. Side-by-side SMTP & HTTP API swap: displays the exact old-vs-new SMTP host, ports (587, 2525, 8025, 8465 STARTTLS and 465 SSL/TLS on connect), username, and HTTP Send API endpoint/header mapping alongside an inline Send a test email verification control.

ImpulseMail client area Provider Migration Assistant under Help showing 8 source provider presets, live DNS scan, drag-and-drop CSV and one-time API suppression import, and side-by-side SMTP2GO to ImpulseMail swap table