From 51a2b386ea69cdfcaccee9ea39974dcdfd7e7ade Mon Sep 17 00:00:00 2001 From: nate smith Date: Sun, 1 Sep 2024 15:34:29 -0500 Subject: [PATCH] cleanup --- email/email.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/email/email.go b/email/email.go index 933497c..d649c59 100644 --- a/email/email.go +++ b/email/email.go @@ -41,8 +41,8 @@ func NewExternalMailer(pw string) *ExternalMailer { } func (m *ExternalMailer) Send(address, subj, body string) error { - from := mail.Address{"Tilde Town Admins", "root@tilde.town"} - to := mail.Address{"", address} + from := mail.Address{Name: "Tilde Town Admins", Address: "root@tilde.town"} + to := mail.Address{Name: "", Address: address} // Setup headers headers := make(map[string]string)