fix(mail): do not fail testmail command when the connection could not be closed.
Resolves https://github.com/go-vikunja/vikunja/issues/300 (cherry picked from commit 40bb86bee59585f827752e96c87e5e8c8f81495c)
This commit is contained in:
@ -18,6 +18,7 @@ package mail
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"code.vikunja.io/api/pkg/config"
|
||||
@ -60,8 +61,7 @@ type header struct {
|
||||
// It works without a queue.
|
||||
func SendTestMail(opts *Opts) error {
|
||||
if config.MailerHost.GetString() == "" {
|
||||
log.Warning("Mailer seems to be not configured! Please see the config docs for more details.")
|
||||
return nil
|
||||
return fmt.Errorf("mailer is not configured! Please see the config docs for more details")
|
||||
}
|
||||
|
||||
c, err := getClient()
|
||||
|
Reference in New Issue
Block a user