Tenant-specific branding requires custom code
Injecting the right logo, colour and sender name per tenant means per-tenant switch statements or database lookups in your email-sending service.
Route emails per tenant, apply tenant-specific brand variables and deliver through tenant-specific providers — all from a single event-driven workflow.
Injecting the right logo, colour and sender name per tenant means per-tenant switch statements or database lookups in your email-sending service.
Maintaining slightly different templates per tenant — or per plan within a tenant — grows into a combinatorial nightmare.
Enterprise tenants often want emails from their own SMTP. Routing to the right provider per tenant requires custom middleware.
Include a tenant_id field in your event payload. Rules match on it to select the right template and provider.
Define logo, primary colour, sender name and reply-to per tenant. Templates inherit them at render time — no code change.
Route tenant A to Postmark, tenant B to their own SMTP. Configured in rules, not in application code.
Your app sends the same event shape for every tenant. else.events resolves the brand, template and provider.
// multi-tenant event
{
"type": "user.signed_up",
"tenant_id": "acme-corp",
"user": { "email": "newuser@acme.com", "name": "Sarah" },
"data": {
"plan": "Pro",
"workspace_name": "Acme Corp"
}
} else.events matches tenant_id = acme-corp, applies Acme Corp brand variables (logo, colours, sender name) and delivers through the tenant configured provider.
One event shape for every tenant. Rules and brand variables handle the rest.