Google Analytics sends scheduled reports and anomaly alerts via Google's infrastructure. No inbound email; Measurement Protocol and BigQuery for data.
Trigger MailKite sends from GA4 events via a webhook relay.
A minimal, copy-paste starter. Swap in your own domain and API key.
import { MailKiteClient } from "@mailkite/client";
// One API, your own DKIM-signed domain — no mail server to run
const mailkite = new MailKiteClient({ token: process.env.MK_API_KEY! });
await mailkite.send({
from: "you@yourdomain.com", // any address on a verified domain
to: "user@example.com",
subject: "Hello from Google Analytics",
html: "<p>Sent in milliseconds via MailKite.</p>",
}); Point a domain, set one SMTP endpoint, send your first email in minutes. Unlimited domains, no credit card.