darkrockmountain / gomail

GoMail is a powerful library for sending emails via multiple providers, including SMTP, Gmail API, Microsoft Graph API, SendGrid, AWS SES, Mailgun, Mandrill, Postmark, and SparkPost. Supporting attachments, plain text, and HTML content, it simplifies email integration for developers with easy setup and robust functionalities.
https://darkrockmountain.com
Apache License 2.0
4 stars 0 forks source link

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

Open JRocabruna opened 1 month ago

JRocabruna commented 1 month ago

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.

github-actions[bot] commented 1 week ago

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