You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using der MailJet Mailer component using the MailJet API in conjunction with template variables, the MailJet component only allows for a max depth of two (2), thus we're getting the following error while trying to send emails:
…epths (nurtext)
This PR was merged into the 6.1 branch.
Discussion
----------
[Mailer][Mailjet] Apply the default value of 512 for max depths
| Q | A
| ------------- | ---
| Branch? | 6.1
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#47701
| License | MIT
| Doc PR | n/a
Applies the default value of 512 for max depths when using PHP's json_decode() function.
See #47701 for more details.
Commits
-------
7832d77 [symfony/mailjet-mailer] Fix bug #47701
* 6.1:
fix merge
[FrameworkBundle] Allow to specify `null` for exception mapping configuration values
Fix BinaryFileResponse content type detection logic
[Notifier] [Expo] Throw exception on error-response from expo api
Bump Symfony version to 6.1.6
Update VERSION for 6.1.5
Update CHANGELOG for 6.1.5
Bump Symfony version to 6.0.14
Update VERSION for 6.0.13
Update CHANGELOG for 6.0.13
Bump Symfony version to 5.4.14
Update VERSION for 5.4.13
Update CHANGELOG for 5.4.13
Bump Symfony version to 4.4.47
Update VERSION for 4.4.46
Update CONTRIBUTORS for 4.4.46
Update CHANGELOG for 4.4.46
[Security] Fix login url matching when app is not run with url rewriting or from a sub folder
[symfony/mailjet-mailer] Fix bug #47701
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected
6.1.*
Description
When using der MailJet Mailer component using the MailJet API in conjunction with template variables, the MailJet component only allows for a max depth of two (2), thus we're getting the following error while trying to send emails:
When using the MailJet PHP API (https://github.com/mailjet/mailjet-apiv3-php) there's no limitation to the depth of the variable template payload.
How to reproduce
symfony/mailer
andsymfony/mailjet-mailer
using composerMAILER_DSN
to use the MailJet API transport as described in the documentation https://symfony.com/doc/current/mailer.html#using-a-3rd-party-transportExample:
Possible Solution
Remove the limitation that allows for only a max depth of 2 levels here: https://github.com/symfony/mailjet-mailer/blob/6.1/Transport/MailjetApiTransport.php#L204
Additional Context
No response
The text was updated successfully, but these errors were encountered: