Skip to content

Commit

Permalink
Refactor SMTP client functions to improve modularity
Browse files Browse the repository at this point in the history
Refactor `DialWithContext` to delegate client creation to `SMTPClientFromDialWithContext`. Add new methods `SendWithSMTPClient`, `CloseWithSMTPClient`, and `ResetWithSMTPClient` to handle specific actions on `smtp.Client`. Simplify `auth`, `sendSingleMsg`, and `tls` methods by passing client as parameters.
  • Loading branch information
wneessen committed Nov 22, 2024
1 parent f9e8690 commit 5588478
Show file tree
Hide file tree
Showing 2 changed files with 168 additions and 83 deletions.
Loading

0 comments on commit 5588478

Please sign in to comment.