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 1 forks source link

refactor(common): move common components to dedicated directory with aliases #27

Closed JRocabruna closed 1 month ago

JRocabruna commented 1 month ago

Description

This pull request refactors common components into a dedicated common directory. The changes include moving the EmailMessage, Attachment, validation functions, and utility functions to the common directory. Additionally, gomail.go has been updated to export these components for backward compatibility.

Checklist

Please ensure the following guidelines are met:

Additional Information

This refactor improves the organization of the codebase, making it easier to maintain and extend. By moving common components into the common directory, we ensure a clearer separation of concerns and better modularity. The gomail.go file provides backward compatibility, so existing code will continue to function without modification.