tech: migrates to none deprecated mail lib

gomail is missing a maintainer so we are
switching to an active fork

ref https://github.com/go-gomail/gomail/issues/108

closes #7189
This commit is contained in:
bergquist
2018-03-27 21:53:46 +02:00
parent 2743e8be20
commit f2755982c3
13 changed files with 186 additions and 227 deletions

16
vendor/gopkg.in/mail.v2/errors.go generated vendored Normal file
View File

@@ -0,0 +1,16 @@
package mail
import "fmt"
// A SendError represents the failure to transmit a Message, detailing the cause
// of the failure and index of the Message within a batch.
type SendError struct {
// Index specifies the index of the Message within a batch.
Index uint
Cause error
}
func (err *SendError) Error() string {
return fmt.Sprintf("gomail: could not send email %d: %v",
err.Index+1, err.Cause)
}