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 pull request includes updates to the tests, documentation, and a fix for JSON marshalling/unmarshalling issues in the EmailMessage struct. Specifically, it sets the maxAttachmentSize field to DefaultMaxAttachmentSize when unmarshalling EmailMessage. The changes enhance test coverage and reliability, improve documentation clarity and consistency with godoc standards, and address the marshalling/unmarshalling issue.
Related Issue:
Fixes #39
Type of Change:
Bug fix (non-breaking change which fixes an issue)
Documentation update
Test improvement
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 update enhances the overall quality and maintainability of the project by ensuring robust testing, clear documentation, and reliable JSON operations. The specific fix ensures that maxAttachmentSize in EmailMessage is set to DefaultMaxAttachmentSize during unmarshalling to prevent potential issues.
Description
This pull request includes updates to the tests, documentation, and a fix for JSON marshalling/unmarshalling issues in the
EmailMessage
struct. Specifically, it sets themaxAttachmentSize
field toDefaultMaxAttachmentSize
when unmarshallingEmailMessage
. The changes enhance test coverage and reliability, improve documentation clarity and consistency withgodoc
standards, and address the marshalling/unmarshalling issue.Checklist
Please ensure the following guidelines are met:
type(scope): description
.Additional Information
This update enhances the overall quality and maintainability of the project by ensuring robust testing, clear documentation, and reliable JSON operations. The specific fix ensures that
maxAttachmentSize
inEmailMessage
is set toDefaultMaxAttachmentSize
during unmarshalling to prevent potential issues.