fix email

pull/1/head
vilmibm 2023-03-10 03:21:12 +00:00
parent 9b1143e18d
commit 9353e3f414
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ func (m *ExternalMailer) Send(address, subject, body string) error {
return fmt.Errorf("auth failed for smtp: %w", err)
}
if err = c.Mail("root@tilde.town"); err != nil {
if err = c.Mail(from); err != nil {
return err
}
@ -87,7 +87,7 @@ func (m *ExternalMailer) Send(address, subject, body string) error {
return err
}
_, err = w.Write([]byte(body))
_, err = w.Write([]byte(message))
if err != nil {
return err
}