Skip to content

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