darkrockmountain/gomail

[FEATURE] - Refactor providers Package to Separate Email Senders into Individual Packages for Improved Modularity and Efficiency

Closed this issue · 1 comments

Is your feature request related to a problem? Please describe.
The current providers package imports all dependencies for all email senders, even when only one specific email sender is needed. This results in unnecessary dependencies being loaded, which can increase compile time and binary size.

Describe the solution you'd like
Refactor the providers package to separate each email sender implementation into its own package. This will allow importing only the dependencies required for the specific email sender being used. Additionally, keep helper functions within the providers folder to centralize all related functionalities.

Describe alternatives you've considered
An alternative solution could be to manually manage dependencies within the providers package, but this approach would be more complex and error-prone compared to modularizing the package structure.

Additional context
This change will enhance the modularity and efficiency of the codebase by ensuring that only the necessary dependencies are imported, leading to potentially faster compile times and smaller binary sizes.

This issue is stale because it has been open for 30 days with no activity.