Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented sendMultiple() method to send multiple messages with 1 API call #2

Open
wants to merge 7 commits into
base: devel
Choose a base branch
from

Conversation

mplattner
Copy link

@mplattner mplattner commented Jun 12, 2018

I implemented the sendMultiple() method in the Mailer class following the convention of BaseMailer (but added an optional $returnResponse parameter to return the API's response, as that is handy when errors occur while sending multiple mails at once.

I added a getMailJetMessage() method to Message to build an array that represents the Message object as the MailJet API expects it.

I also added 2 tests for the new sendMultiple() method, everything passes (using PHPUnit).
Also updated the README accordingly.
No backwards-compatibility breaking changes were made.

It's only my second PR, so let me know if I should change anything.
Thanks for the nice component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant