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 <noreply@anthropic.com>
This commit is contained in:
2026-06-16 12:03:18 -04:00
parent 9aa1f94eb4
commit 2c50e96fbd
@@ -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(