The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
conditionaly set email recipient list - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: conditionaly set email recipient list (/showthread.php?tid=2224)



conditionaly set email recipient list - marcat - Oct 10th, 2012

I have a need to send email to a recipient list based upon user input. Is this possible with ver. 2.2.2?
Example: User number 1 submits form with field name list=1. When received, Form Tools would send email to a predefined list of addresses, we'll call this list A.
User number 2 submits form with fields name list=2. When received, Form Tools would send email to a second predefined list of addresses we'll call list B.
Thoughts, ideas, solutions, examples???
TIA for feedback...
Marc


RE: conditionaly set email recipient list - alexh - Oct 10th, 2012

Yes, this is possible.

The best way to do this, is to create two views.

In View "A", create a filter. The filter should say field_1 = "A"
In View "B". create a filter. The filter should say field_1 = "B"
... and so on.

Then, create a new email under the email tab. In advanced settings under the configuration tab, select view "A" under "Only submissions that fit into the following View(s)".

Once that email template is complete, create another email under the email tab. Follow the steps above but select "View B".

Let me know how that goes,
Alex


RE: conditionaly set email recipient list - marcat - Oct 12th, 2012

SWEET! Never played with filters before, works like a charm!
Thank you for an elegant solution.
Form Tools ROCKS!

(Oct 10th, 2012, 4:53 PM)alexh Wrote: Yes, this is possible.

The best way to do this, is to create two views.

In View "A", create a filter. The filter should say field_1 = "A"
In View "B". create a filter. The filter should say field_1 = "B"
... and so on.

Then, create a new email under the email tab. In advanced settings under the configuration tab, select view "A" under "Only submissions that fit into the following View(s)".

Once that email template is complete, create another email under the email tab. Follow the steps above but select "View B".

Let me know how that goes,
Alex