feat: run onBeforeEmailSend hook before send, expose fromEmail on OutgoingEmail

This commit is contained in:
Linus Rath
2026-05-05 20:04:00 +02:00
parent 28054c81ea
commit 2a769c2b0a
2 changed files with 23 additions and 0 deletions
+2
View File
@@ -541,6 +541,8 @@ export interface OutgoingEmail {
htmlBody: string;
textBody: string;
identityId: string;
/** Sender email derived from the active identity (incl. sub-address tag, when set) */
fromEmail?: string;
attachments: { name: string; type: string; size: number }[];
/** Original message id when this is a reply or forward */
inReplyTo?: string;