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

merged
opened by ptr.pet targeting master
Changed files
+3 -2
appview
config
settings
+2 -1
appview/config/config.go
···
}
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 {
+1 -1
appview/settings/settings.go
···
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.