From 5223347845060b5af3983509582956a66def815e Mon Sep 17 00:00:00 2001
From: Kelly Gardner <8794844+kmgardner@users.noreply.github.com>
Date: Wed, 25 Sep 2019 14:15:11 -0400
Subject: [PATCH 1/3] Added CC and BCC email options
---
plugins/fabrik_form/email/email.php | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/plugins/fabrik_form/email/email.php b/plugins/fabrik_form/email/email.php
index 0cc0cd35eed..e5d4f19c739 100644
--- a/plugins/fabrik_form/email/email.php
+++ b/plugins/fabrik_form/email/email.php
@@ -173,8 +173,20 @@ public function onAfterProcess()
$this->addAttachments();
- $cc = null;
- $bcc = null;
+ if (!empty($params->get('email_cc'))) {
+ $cc = $params->get('email_cc');
+ }
+ else
+ {
+ $cc = null;
+ }
+ if (!empty($params->get('email_bcc'))) {
+ $bcc = $params->get('email_bcc');
+ }
+ else
+ {
+ $bcc = null;
+ }
// $$$ hugh - test stripslashes(), should be safe enough.
$message = stripslashes($message);
From fe96720d2d2b0e4ce58b1251ff0cfe9651de4a6b Mon Sep 17 00:00:00 2001
From: Kelly Gardner <8794844+kmgardner@users.noreply.github.com>
Date: Wed, 25 Sep 2019 14:16:16 -0400
Subject: [PATCH 2/3] Added CC and BCC email options
---
plugins/fabrik_form/email/forms/fields.xml | 26 ++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/plugins/fabrik_form/email/forms/fields.xml b/plugins/fabrik_form/email/forms/fields.xml
index 9f062e6eced..b77fd35742a 100644
--- a/plugins/fabrik_form/email/forms/fields.xml
+++ b/plugins/fabrik_form/email/forms/fields.xml
@@ -30,6 +30,32 @@
multiple="true"
repeat="true"
size="6"/>
+
+