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.
This PR refactors the gomail package to simplify type aliasing for EmailMessage and Attachment. The goal is to streamline the code and make it cleaner by removing the explicit common package reference in the function return types.
Related Issue:
Type of Change:
Refactor (code changes that neither fix a bug nor add a feature)
Checklist
Please ensure the following guidelines are met:
[x] The code follows the style guidelines of this project.
[x] A self-review has been performed on the code.
[x] The code is well-documented, and comments have been added where necessary.
[x] Tests have been added to prove that the fix is effective or that the feature works. All existing tests pass.
[x] Commit messages follow the convention type(scope): description.
[x] The pull request has no conflicts with the base branch.
[x] Any dependent changes have been merged and published in downstream modules.
Additional Information
This refactor does not introduce any breaking changes and is fully backward-compatible with existing codebases using the gomail package.
Description
This PR refactors the
gomail
package to simplify type aliasing forEmailMessage
andAttachment
. The goal is to streamline the code and make it cleaner by removing the explicitcommon
package reference in the function return types.Checklist
Please ensure the following guidelines are met:
type(scope): description
.Additional Information
This refactor does not introduce any breaking changes and is fully backward-compatible with existing codebases using the
gomail
package.