mirror of
https://github.com/acaloiaro/garbagespeak.com
synced 2026-07-21 18:29:08 +00:00
Rename FROM_ADDRESS env var
This commit is contained in:
parent
a63e690bd1
commit
eaf6b43687
2 changed files with 2 additions and 2 deletions
|
|
@ -20,4 +20,4 @@ SMTP_USERNAME=<SMTP_USERNAME>
|
||||||
SMTP_PASSWORD=<SMTP_PASSWORD>
|
SMTP_PASSWORD=<SMTP_PASSWORD>
|
||||||
|
|
||||||
# The email address from which emails are sent
|
# The email address from which emails are sent
|
||||||
SMTP_FROM_ADDRESS=<SMTP_FROM_ADDRESS>
|
SMTP_SENDER=<SMTP_SENDER>
|
||||||
|
|
|
||||||
|
|
@ -670,7 +670,7 @@ func listGarbageHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
// email address verification
|
// email address verification
|
||||||
func sendWelcomeEmail(recipient, verificationURL, siteName string) error {
|
func sendWelcomeEmail(recipient, verificationURL, siteName string) error {
|
||||||
smtpHost := os.Getenv("SMTP_HOST")
|
smtpHost := os.Getenv("SMTP_HOST")
|
||||||
from := os.Getenv("SMTP_FROM_ADDRESS")
|
from := fmt.Sprintf("noreply@%s", os.Getenv("SITE_DOMAIN"))
|
||||||
to := []string{recipient}
|
to := []string{recipient}
|
||||||
|
|
||||||
log.Println("SMTP host:", smtpHost, "from:", from)
|
log.Println("SMTP host:", smtpHost, "from:", from)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue