[Mailer] Fixed mandrill api header structure#37900
Merged
fabpot merged 1 commit intosymfony:4.4from Aug 21, 2020
Merged
Conversation
stof
approved these changes
Aug 20, 2020
Contributor
|
There is a test failure though: |
Contributor
Author
|
I have updated the relevant test case, but now the Travis test fails on an unrelated test: https://travis-ci.org/github/symfony/symfony/jobs/719745366#L7547. |
dmaicher
approved these changes
Aug 21, 2020
Contributor
dmaicher
left a comment
There was a problem hiding this comment.
the other test failures seem unrelated
Contributor
|
@wulff can you rebase this to 4.4? There the issue also exists, right? |
60c4191 to
aeb4c5e
Compare
Member
|
Thank you @wulff. |
fabpot
reviewed
Aug 21, 2020
| } | ||
|
|
||
| $payload['message']['headers'][] = $name.': '.$header->getBodyAsString(); | ||
| $payload['message']['headers'][$name] = $header->getBodyAsString(); |
Member
There was a problem hiding this comment.
How does Mandrill handle several headers with the same name? Here you will only ever get the last one.
Contributor
Author
There was a problem hiding this comment.
As far as I can tell, Mandrill only allows one of each header in the headers field.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When using the Mandrill API transport, it is not possible to set a reply-to address.
How to reproduce
Create a new email and add a reply-to address:
The expected result is a payload which contains the following headers:
But instead, the
getPayload()method produces these headers:Additional context
See https://mandrillapp.com/api/docs/messages.html.