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.
Updated users.NewItemSendmailPostRequestBody() to users.NewItemSendMailPostRequestBody() in msgraph-sdk-go v1.46.0 to resolve method deprecation issue. Also refactored code to consolidate usage of github.com/darkrockmountain/gomail/common in the microsoft365 package for improved organization.
Related Issue: Closes #65
Type of Change: (Please delete options that are not relevant)
Bug fix (non-breaking change which fixes an issue)
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.
Description
Updated users.NewItemSendmailPostRequestBody() to users.NewItemSendMailPostRequestBody() in msgraph-sdk-go v1.46.0 to resolve method deprecation issue. Also refactored code to consolidate usage of github.com/darkrockmountain/gomail/common in the microsoft365 package for improved organization.
Checklist
Please ensure the following guidelines are met:
type(scope): description
.