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

test(email): extend email tests for providers #9

Closed JRocabruna closed 3 months ago

JRocabruna commented 3 months ago

Extend tests to achieve 90% code coverage

Description

This pull request extends the existing test suite to increase code coverage to 90%. It adds tests for various scenarios, including successful email sending, different SMTP authentication methods, handling different email content types, network failures, and invalid email addresses.

Checklist

Please ensure the following guidelines are met:

Additional Information

No additional dependencies are required for this change. The improvements to test coverage will enhance code reliability and maintainability.