feat(email): make verify-email org-aware like other transactional mail

Resolve the tenant org from the verification link callback URL (custom
domain, tenant subdomain, or ?org=) and apply org logo, theme color, from
name, and subject. Falls back to ClassroomIO branding on the main app.

Co-authored-by: Rotimi Best <[email protected]>
This commit is contained in:
Cursor Agent
2026-07-10 04:32:11 +00:00
co-authored by Rotimi Best
parent f262a092ed
commit a6d06f356f
7 changed files with 185 additions and 34 deletions
+1
View File
@@ -95,6 +95,7 @@ export async function sendEmail<TEmailId extends EmailId>(
fields: validatedFields,
from: config.from ?? template.from,
replyTo: config.replyTo ?? template.replyTo,
subject: config.subject,
ics: config.ics
});
} catch (error) {