1
0

Fix sending notifications to users if the user object didn't have an email

This commit is contained in:
kolaente
2021-02-14 22:44:01 +01:00
parent 58492fffce
commit 83f003355d
3 changed files with 21 additions and 7 deletions

View File

@ -32,9 +32,7 @@ type Mail struct {
// NewMail creates a new mail object with a default greeting
func NewMail() *Mail {
return &Mail{
greeting: "Hi,",
}
return &Mail{}
}
// From sets the from name and email address