From 144c42f82306ba2a805bc89923f40d0e2162d994 Mon Sep 17 00:00:00 2001 From: Brad Wood Date: Wed, 19 Oct 2022 14:25:10 -0500 Subject: [PATCH] feat: Add additional send grid options --- models/protocols/SendGridProtocol.cfc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/models/protocols/SendGridProtocol.cfc b/models/protocols/SendGridProtocol.cfc index 6215411..7e5d29f 100644 --- a/models/protocols/SendGridProtocol.cfc +++ b/models/protocols/SendGridProtocol.cfc @@ -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";