diff --git a/.gitignore b/.gitignore index 891a6845e6..0a9ca62248 100644 --- a/.gitignore +++ b/.gitignore @@ -57,4 +57,6 @@ worker-configuration.d.ts # devcontainer .pnpm-store -tsx-0/ \ No newline at end of file +tsx-0/ + +tools.json \ No newline at end of file diff --git a/apps/mail/components/create/create-email.tsx b/apps/mail/components/create/create-email.tsx index 930ae0d5cc..26bade119f 100644 --- a/apps/mail/components/create/create-email.tsx +++ b/apps/mail/components/create/create-email.tsx @@ -101,9 +101,9 @@ export function CreateEmail({ subject: string; message: string; attachments: File[]; + fromEmail?: string; }) => { - // Use the selected from email or the first alias (or default user email) - const fromEmail = aliases?.[0]?.email ?? userEmail; + const fromEmail = data.fromEmail || aliases?.[0]?.email || userEmail; const zeroSignature = settings?.settings.zeroSignature ? '
Sent via Zero
' @@ -185,6 +185,7 @@ export function CreateEmail({Subject:
From:
+ +