-
Notifications
You must be signed in to change notification settings - Fork 983
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
Dynamic template data for multiple recipients #86
Comments
Yes, you can send one mail to multiple recipient. I have faced same problem but I have solved the issue. Just use separate personalizations.
|
Since this issue hasn't been closed, how do I inject my dynamic template data into the model when using the
|
For you reference:-
|
I also had issues with it. What worked for me - example:
|
Actual Behaviour
Right now, I can only send dynamic template data for one recipient at a time. Example of my code:
{
"personalizations": [
{
"to": [
{
"email": "[email protected]",
"name": "John Doe"
}
],
"dynamic_template_data": {
"firstName": "John",
"lastName": "Doe"
},
"subject": "Hello, World!"
}
],
"from": {
"email": "[email protected]",
"name": "John Doe"
},
"reply_to": {
"email": "[email protected]",
"name": "John Doe"
},
"template_id": "<<YOUR_TEMPLATE_ID>>"
}
Expected Behaviour
I want to send dynamic template data for each recipient, but I don't know how. The idea is to send personalized e-mails for multiple recipients one at a time, instead of sending emails one by one. I tried to search for an example but I couldn't find it. Do you have any?
The text was updated successfully, but these errors were encountered: