Monorepo for Tangled tangled.org

appview: config,settings: add a config option for setting email "sent from" address

authored by ptr.pet and committed by Tangled 9bc7a2ac c0660c1f

Changed files
+3 -2
appview
config
settings
+2 -1
appview/config/config.go
··· 25 25 } 26 26 27 27 type ResendConfig struct { 28 - ApiKey string `env:"API_KEY"` 28 + ApiKey string `env:"API_KEY"` 29 + SentFrom string `env:"SENT_FROM, default=noreply@notifs.tangled.sh"` 29 30 } 30 31 31 32 type CamoConfig struct {
+1 -1
appview/settings/settings.go
··· 81 81 82 82 return email.Email{ 83 83 APIKey: s.Config.Resend.ApiKey, 84 - From: "noreply@notifs.tangled.sh", 84 + From: s.Config.Resend.SentFrom, 85 85 To: emailAddr, 86 86 Subject: "Verify your Tangled email", 87 87 Text: `Click the link below (or copy and paste it into your browser) to verify your email address.