Skip to content

Commit

Permalink
fix: Use dynamic_template_data instead of substitutions
Browse files Browse the repository at this point in the history
  • Loading branch information
robertz committed May 11, 2023
1 parent 144c42f commit f08939f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
/testbox/
/modules/
/.idea
2 changes: 1 addition & 1 deletion models/protocols/SendGridProtocol.cfc
Expand Up @@ -103,7 +103,7 @@ component extends="cbmailservices.models.AbstractProtocol" {

if ( type == "template" ) {
body[ "template_id" ] = mail.body;
personalization[ "substitutions" ] = mail.bodyTokens;
personalization[ "dynamic_template_data" ] = mail.bodyTokens;
}
else {
body[ "content" ] = [ {
Expand Down

0 comments on commit f08939f

Please sign in to comment.