Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Mailer] Fixed undefined index when sending via Mandrill API #34954

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

Merged

Conversation

wulff
Copy link
Contributor

@wulff wulff commented Dec 12, 2019

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #34892
License MIT

When a Mandrill API send request is succesful, it returns an array of results, one for each recipient. To get rid of the undefined index error, we grab the message ID from the first recipient in the array.

When a Mandrill API request is succesful, it returns an array of
results, one for each recipient. To get rid of the undefined index
error, we grab the message ID from the first recipient in the array.
@nicolas-grekas
Copy link
Member

Thank you @wulff.

nicolas-grekas added a commit that referenced this pull request Dec 17, 2019
…PI (wulff)

This PR was merged into the 4.4 branch.

Discussion
----------

[Mailer] Fixed undefined index when sending via Mandrill API

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #34892
| License       | MIT

When a [Mandrill API send request](https://www.mandrillapp.com/api/docs/messages.JSON.html#method=send) is succesful, it returns an array of results, one for each recipient. To get rid of the undefined index error, we grab the message ID from the first recipient in the array.

Commits
-------

ef0aa4d [Mailer] fixed undefined index when sending mail
@nicolas-grekas nicolas-grekas merged commit ef0aa4d into symfony:4.4 Dec 17, 2019
This was referenced Dec 19, 2019
@wulff wulff deleted the mailer/fix-mandrill-undefined-index branch December 20, 2019 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants