wneessen / go-mail

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

Client debug logging #101

Closed wneessen closed 1 year ago

wneessen commented 1 year ago

Is your feature request related to a problem? Please describe.

Now that we have net/smtp in our own control, we can implement useful things that weren't possible before (or just very cumbersome). First feature should be debug logging, allowing us see the input and outputs of the SMTP client.

Describe the solution you'd like

The NewClient should get an optional option. If this option is "debug", we want to create a log on the Client and log the different in- and outputs.

Describe alternatives you've considered

No response

Additional context

No response