diff --git a/notify/email/email.go b/notify/email/email.go index 25b09875..d7e5be7b 100644 --- a/notify/email/email.go +++ b/notify/email/email.go @@ -368,7 +368,7 @@ func (n *Email) getPassword() (string, error) { if err != nil { return "", fmt.Errorf("could not read %s: %w", n.conf.AuthPasswordFile, err) } - return string(content), nil + return strings.TrimSpace(string(content)), nil } return string(n.conf.AuthPassword), nil }