Commit 91f8966
committed
feature symfony#61775 [Mailer][Mandrill] Add
This PR was squashed before being merged into the 7.4 branch.
Discussion
----------
[Mailer][Mandrill] Add `subaccount` to the payload
| Q | A
| ------------- | ---
| Branch? | 7.4
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Issues | N/A
| License | MIT
<!--
🛠️ Replace this text with a concise explanation of your change:
- Adds support for MailChimp / Mandrill's subaccount feature - https://mailchimp.com/developer/transactional/docs/subaccounts/
- When emails are sent through the API, there is an option to set the subaccount parameter under [message][subaccount]. The current MandrillApiTransport class does not support this.
- If emails are sent through SMTP the subaccount can be specified by setting the `X-MC-Subaccount` header
- Proposal: If the X-MC-Subaccount header is present the MandrillApiTransport should set the [message][subaccount] field in the JSON it sends to the API
Contributor guidelines:
- ✅ Add tests and ensure they pass
- 🐞 Bug fixes must target the **lowest maintained** branch where they apply
https://symfony.com/releases#maintained-symfony-branches
- ✨ New features and deprecations must target the **feature** branch
and must add an entry to the changelog file of the patched component:
https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
- 🔒 Do not break backward compatibility:
https://symfony.com/bc
-->
Commits
-------
f5b2050 [Mailer][Mandrill] Add `subaccount` to the payloadsubaccount to the payload (andrehoong-pixieset)File tree
3 files changed
+25
-1
lines changed- src/Symfony/Component/Mailer/Bridge/Mailchimp
- Tests/Transport
- Transport
3 files changed
+25
-1
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
4 | 9 | | |
5 | 10 | | |
6 | 11 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
69 | 84 | | |
70 | 85 | | |
71 | 86 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| |||
118 | 122 | | |
119 | 123 | | |
120 | 124 | | |
121 | | - | |
| 125 | + | |
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
| |||
0 commit comments