Welcome to go-mail v0.6.2! This release fixes some bugs and makes go-mail ready for Go 1.24.
Fix regression of custom SMTP authentication handling
PR #429 fixes a regression in the handling of custom smtp.Auth
methods that was introduced with the v0.6.0 release. Basically, if a custom SMTP auth method was provided, it was simply ignored. Thanks to @james-d-elliott of the Authelia project for reporting this.
Fix possible nil pointer derefernece in SendWithSMTPClient
With commit 4641da4 we fixed a possible nil pointer dereference in the SendWithSMTPClient
method. This would happen if a nil message would be provided to the method. This bug was reported using Github's private vulnerability reporting feature by @younes199511. Thanks for the report!
Header count logic improvements
PR #421 fixed an issue in the header count logic that is used for S/MIME signing. If a header was broken into mutliple lines due to its lenght, the count logic was giving false results, resulting into false content for the S/MIME signature. Thanks to @theexiile1305 for reporting the issue and helping to debug the issue!
Go 1.24 readiness
The PRs #431 and #433 make go-mail and its CI ready for Go 1.24.
What's Changed
- Refactor header count logic for accurate line tracking by @wneessen in #421
- chore: improve tests for multipart messages by @wneessen in #422
- Add tests for handling nil messages in email client by @wneessen in #427
- Fix regression of custom smtp.Auth not working by @wneessen in #429
- Skip tests for broken rand.Reader on Go 1.24+. by @wneessen in #433
- chore: update CI to Go 1.24 by @wneessen in #431
- Update version to 0.6.2 and fix typo in documentation by @wneessen in #434
CI/CD maintenance changes
- Bump golang.org/x/text from 0.21.0 to 0.22.0 by @dependabot in #425
- Bump golang.org/x/crypto from 0.32.0 to 0.33.0 by @dependabot in #426
Full Changelog: v0.6.1...v0.6.2