diff --git a/appview/config/config.go b/appview/config/config.go index 451aa2c..8c6f12d 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 5a0f674..3bb1d86 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.