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

chore: update tests, documentation, and fix JSON marshalling/unmarshal #40

Closed JRocabruna closed 3 weeks ago

JRocabruna commented 3 weeks ago

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 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.

Checklist

Please ensure the following guidelines are met:

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.