Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(server): refactored NewSMTPClient to NewSMTPServer #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

flc1125
Copy link

@flc1125 flc1125 commented Jul 3, 2024

The NewSMTPClient method can be misleading, making it seem like it returns *mail.SMTPClient.

Therefore, I have adjusted it to the NewSMTPServer method and set some other Option properties.

Additional suggestion:

Currently, the comment only suggests deprecating NewSMTPClient,
but my recommendation is to fully deprecate NewSMTPClient in a future version.

Alternatively, adjust NewSMTPClient to the following logic: NewSMTPClient(server *mail.SMTPServer) *mail.SMTPClient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant