Skip to content

Commit

Permalink
parseTokens error with complex data when using send-grid-protocol wit…
Browse files Browse the repository at this point in the history
…h cbmailservices (#34)

* Do not process tokens for dynamic templates

* Fix formatting issues

---------

Co-authored-by: Robert Zehnder <rzehnder@guerrilla-rf.com>
  • Loading branch information
robertz and Robert Zehnder committed Sep 13, 2023
1 parent a90bfc1 commit 06a9f57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,4 +1,5 @@
.vscode
.idea

.artifacts/**
.tmp/**
Expand Down
3 changes: 3 additions & 0 deletions models/MailService.cfc
Expand Up @@ -376,6 +376,9 @@ component accessors="true" singleton threadsafe {
var tokenMarker = getTokenMarker();
var key = "";

// Do not process tokens if using dynamic template (send-grid-protocol)
if( arguments.mail.getType() == "template" ) return;

// Check mail parts for content
if ( arrayLen( mailparts ) ) {
// Loop over mail parts
Expand Down

0 comments on commit 06a9f57

Please sign in to comment.