Outputting two email addresses using Formit with PHP

&emailTo=`[[!script]]` /* Put this in the formit call and then create a snippet */

/* the "script" snippet */
if($_POST['templateVariableName'] == "SomeName") {
      $output = 'eg@test.com.au, eg2@test.com.au';
} elseif($_POST['templateVariableName'] == "SomeName2") {
      $output = 'eg3@test.com.au, eg4@test.com.au';
} else {
       $output = 'eg5@test.com.au, eg6@test.com.au';

return $output;

Get In Touch

Have a question? or perhaps spotted a problem?
Maybe you have something you would like to add. Drop us a line anytime!