-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass email params to the recipient variables for non-batch sending
Originally, there was a discrepancy in the X-Mailer-Template-Params message header: - Batch sending used the structure with email addresses: { "[email protected]": { /* variables */ }, "[email protected]": { /* variables */ } } - Non-batch sending used the more direct variant { /* variables */ } We fixed this discrepancy in a hotfix in e1a0221. On 10-June-2022 Mailgun started to return HTTP 400 for the recipient variables structured as in the example 2 and the change was necessary. This commit brings the temporarily removed params back to the header. We also changed the way how message ID is generated to use more faster crc32b hash instead of the fully random string. remp/remp#1146 (cherry picked from commit 96ea3d3)
- Loading branch information
Showing
3 changed files
with
26 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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