Describe the bug
In sender.go (lines 220, 360, 373, 804, 816, 830), multiple Close() calls on quoted-printable writers and multipart writers don't check the returned error. A failed Close() means the MIME part wasn't properly terminated, resulting in malformed emails.
To reproduce
- Send an email under memory pressure where write buffers can't flush
- Email sends with malformed MIME structure
Expected behavior
All Close() calls should check and propagate errors. Use defer with error capture where appropriate.
Describe the bug
In sender.go (lines 220, 360, 373, 804, 816, 830), multiple
Close()calls on quoted-printable writers and multipart writers don't check the returned error. A failed Close() means the MIME part wasn't properly terminated, resulting in malformed emails.To reproduce
Expected behavior
All
Close()calls should check and propagate errors. Usedeferwith error capture where appropriate.