Fixed an error message
This commit is contained in:
parent
01674ee5b6
commit
ea9c2b2d08
2
send.go
2
send.go
|
@ -110,7 +110,7 @@ func getFrom(msg *mail.Message) (string, error) {
|
||||||
if from == "" {
|
if from == "" {
|
||||||
from = msg.Header.Get("From")
|
from = msg.Header.Get("From")
|
||||||
if from == "" {
|
if from == "" {
|
||||||
return "", errors.New("mailer: invalid message, \"From\" field is absent")
|
return "", errors.New("gomail: invalid message, \"From\" field is absent")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue