This repository has been archived by the owner on Nov 28, 2024. It is now read-only.
forked from go-gomail/gomail
-
Notifications
You must be signed in to change notification settings - Fork 78
Expose wrapped errors returned by Send() #12
Labels
Comments
I could possibly pick this up, I've wanted to improve the error handling for a while. For example if gomail rejects the address syntax it would be nicer to have a specific error that could be matched on rather than relying on a string match. |
@lucianjon Yes! That would be wonderful. |
Snag here is whether to KEEP alive, or cancel. If missued then this is the same poblem on mail server connect.. This means the write out to nginx is much faster though |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Originally reported in go-gomail#102, the error details are lost in
Send()
due the use of fmt.Errorf. As mentioned in the original issue, we should allow smarter handling of errors by exposing the original error and index in a struct:The text was updated successfully, but these errors were encountered: