From 2c50e96fbd4ef01e1b9d4ec5605d8c3351bee6bf Mon Sep 17 00:00:00 2001 From: renee-png Date: Tue, 16 Jun 2026 12:03:18 -0400 Subject: [PATCH] Email: default automated sender to notifications@avriamail.com The retired no-reply@avriamail.com had no email_senders row, so the queue dispatcher 500'd on every run. Point DEFAULT_AUTOMATED_FROM at notifications@avriamail.com (the sole remaining sender). The AUTOMATED_EMAIL_FROM secret was set to match and the function deployed. Co-Authored-By: Claude Opus 4.8 --- supabase/functions/process-email-queue/index.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/supabase/functions/process-email-queue/index.ts b/supabase/functions/process-email-queue/index.ts index 80defa6..98780f9 100644 --- a/supabase/functions/process-email-queue/index.ts +++ b/supabase/functions/process-email-queue/index.ts @@ -5,11 +5,9 @@ import { sendViaHostingerMail, type HostingerMailConfig } from '../_shared/hosti // Which sender identity automated email is sent from. Must be an active row in // public.email_senders that the SMTP account is authorized to send as. Override // per-environment with the AUTOMATED_EMAIL_FROM secret. -// NOTE: no-reply@avriamail.com (Office365) is the sender with currently-valid -// SMTP credentials — it is the address that has actually been delivering mail. -// The Hostinger mail@avriacam.com mailbox rejects its stored password (SMTP 535) -// and must have its password re-entered in Email Settings before it can be used. -const DEFAULT_AUTOMATED_FROM = 'no-reply@avriamail.com' +// notifications@avriamail.com (Hostinger) is the single sender of record for all +// automated/transactional mail. The retired mail@avriacam.com mailbox was removed. +const DEFAULT_AUTOMATED_FROM = 'notifications@avriamail.com' // Load (and shape) the SMTP sender used for all queued automated email. async function loadAutomatedSender(