fix email
parent
9b1143e18d
commit
9353e3f414
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue