wneessen / go-mail

📧 Easy to use, yet comprehensive library for sending mails with Go
https://go-mail.dev
MIT License
677 stars 48 forks source link

Add an option to skip adding a User-Agent #178

Closed gegorov2030 closed 8 months ago

gegorov2030 commented 8 months ago

Adds an option to omit the default User-Agent, suitable for scenarios like SMTP proxies where headers are conditionally passed based on receipt.

codecov[bot] commented 8 months ago

Codecov Report

Attention: Patch coverage is 42.85714% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 75.45%. Comparing base (68e6284) to head (299490f).

Files Patch % Lines
msg.go 42.85% 4 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #178 +/- ## ========================================== - Coverage 81.29% 75.45% -5.85% ========================================== Files 24 24 Lines 2128 2135 +7 ========================================== - Hits 1730 1611 -119 - Misses 283 417 +134 + Partials 115 107 -8 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

wneessen commented 8 months ago

Thanks for the PR @gegorov2030. Can you please add a test for this as well? Besides that, LGTM.

gegorov2030 commented 8 months ago

Added, thank you