Skip to content

Commit

Permalink
feat: Add additional send grid options
Browse files Browse the repository at this point in the history
  • Loading branch information
bdw429s committed Oct 19, 2022
1 parent 590a463 commit 144c42f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions models/protocols/SendGridProtocol.cfc
Expand Up @@ -84,6 +84,19 @@ component extends="cbmailservices.models.AbstractProtocol" {
if ( structKeyExists( mail.additionalInfo, "customArgs" ) ) {
body[ "custom_args" ] = mail.additionalInfo.customArgs;
}

if ( structKeyExists( mail.additionalInfo, "trackingSettings" ) ) {
body[ "tracking_settings" ] = mail.additionalInfo.trackingSettings;
}

if ( structKeyExists( mail.additionalInfo, "mailSettings" ) ) {
body[ "mail_settings" ] = mail.additionalInfo.mailSettings;
}

if ( structKeyExists( mail.additionalInfo, "batchID" ) ) {
body[ "batch_id" ] = mail.additionalInfo.batchID;
}

}

var type = structKeyExists( mail, "type" ) ? mail.type : "plain";
Expand Down

0 comments on commit 144c42f

Please sign in to comment.