Skip to content

Commit

Permalink
Fix to send mail
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Jan 14, 2019
1 parent 72d9573 commit 7dd22e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dkron/notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"strings"
"text/template"

"github.com/sirupsen/logrus"
"github.com/jordan-wright/email"
"github.com/sirupsen/logrus"
)

type Notifier struct {
Expand Down Expand Up @@ -115,7 +115,7 @@ func (n *Notifier) sendExecutionEmail() {
if n.Config.MailUsername != "" && n.Config.MailPassword != "" {
auth = smtp.PlainAuth("", n.Config.MailUsername, n.Config.MailPassword, n.Config.MailHost)
}
if err := em.Send(serverAddr, auth); err != nil {
if err := e.Send(serverAddr, auth); err != nil {
log.WithError(err).Error("notifier: Error sending email")
}
}
Expand Down

0 comments on commit 7dd22e5

Please sign in to comment.