From 00634d2e1d307cc57fe0614eea263144e0b337d5 Mon Sep 17 00:00:00 2001 From: Dave Date: Mon, 17 Aug 2026 20:39:22 +0200 Subject: [PATCH] Use himalaya message send --save Sent (saves to Sent folder) --- app/api/appointments/[id]/route.ts | 2 +- app/api/appointments/route.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/appointments/[id]/route.ts b/app/api/appointments/[id]/route.ts index be50b96..229d164 100644 --- a/app/api/appointments/[id]/route.ts +++ b/app/api/appointments/[id]/route.ts @@ -222,7 +222,7 @@ ${pdfB64}\r const emlContent = readFileSync(emlPath, "utf8"); const toMatch = emlContent.match(/^To:\s*(.+)$/m); const toAddresses = toMatch ? toMatch[1].trim() : ""; - execSync(`himalaya -a dyfins smtp send --mail-from SJ@Dyfins.com --rcpt-to "${toAddresses}" < "${emlPath}"`, { timeout: 60 }); + execSync(`himalaya -a dyfins message send --save Sent < "${emlPath}"`, { timeout: 90 }); } finally { unlinkSync(emlPath); } diff --git a/app/api/appointments/route.ts b/app/api/appointments/route.ts index c50e7bb..7ddc98b 100644 --- a/app/api/appointments/route.ts +++ b/app/api/appointments/route.ts @@ -226,7 +226,7 @@ ${body}\r const emlContent = readFileSync(emlPath, "utf8"); const toMatch = emlContent.match(/^To:\s*(.+)$/m); const toAddresses = toMatch ? toMatch[1].trim() : ""; - execSync(`himalaya -a dyfins smtp send --mail-from SJ@Dyfins.com --rcpt-to "${toAddresses}" < "${emlPath}"`, { timeout: 60 }); + execSync(`himalaya -a dyfins message send --save Sent < "${emlPath}"`, { timeout: 90 }); } finally { unlinkSync(emlPath); if (pdfPath && pdfPath.length > 0) {