Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Archibald committed Apr 2, 2018
2 parents 034990a + 5b48b66 commit d5c9c2b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mailer.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ func (s *SmtpSender) Send(to, subject, body string) error {

d := gomail.NewPlainDialer(s.SMTPServer, s.SMTPPort, s.SMTPFromEmail, s.SMTPPassword)

if err := d.DialAndSend(m); err != nil {
return err
}
return nil
return d.DialAndSend(m)
}

func (e *Emailer) SendVerify(to string, data interface{}) error {
Expand Down

0 comments on commit d5c9c2b

Please sign in to comment.