Closed aep closed 1 year ago
Thanks for the report @aep. Would you happen to have a code example that I could use to reproduce. If not, that's fine- I'll try to reproduce with a local mail server that will intentionally fail.
oh as i said, its really hard to repro. but i think you can provoke it by setting the IO timeout very short.
Thanks again for the report. I was able to reproduce the behaviour and fixed it with #139
Description
https://github.com/wneessen/go-mail/blob/main/msgwriter.go#L240
this error is ignored, leading to a crash here
https://github.com/wneessen/go-mail/blob/main/msgwriter.go#L234C1-L235C1
To Reproduce
hard to do. this happens with some broken mail server that just times out.
Expected behaviour
error shouldnt be ignored
Screenshots
No response
Attempted Fixes
No response
Additional context
No response