From 9bc7a2ac6f8428629edf9d0594162f6e23e24c1c Mon Sep 17 00:00:00 2001 From: "gaze.systems" Date: Mon, 2 Jun 2025 13:50:03 +0000 Subject: [PATCH] appview: config,settings: add a config option for setting email "sent from" address --- appview/config/config.go | 3 ++- appview/settings/settings.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/appview/config/config.go b/appview/config/config.go index 451aa2cb..8c6f12de 100644 --- a/appview/config/config.go +++ b/appview/config/config.go @@ -25,7 +25,8 @@ type JetstreamConfig struct { } type ResendConfig struct { - ApiKey string `env:"API_KEY"` + ApiKey string `env:"API_KEY"` + SentFrom string `env:"SENT_FROM, default=noreply@notifs.tangled.sh"` } type CamoConfig struct { diff --git a/appview/settings/settings.go b/appview/settings/settings.go index 5a0f674c..3bb1d864 100644 --- a/appview/settings/settings.go +++ b/appview/settings/settings.go @@ -81,7 +81,7 @@ func (s *Settings) buildVerificationEmail(emailAddr, did, code string) email.Ema return email.Email{ APIKey: s.Config.Resend.ApiKey, - From: "noreply@notifs.tangled.sh", + From: s.Config.Resend.SentFrom, To: emailAddr, Subject: "Verify your Tangled email", Text: `Click the link below (or copy and paste it into your browser) to verify your email address. -- 2.51.2