Controlling e-mails from form inputs
Back in Chapter 2, E-mailing Form Results, we saw how to send e-mails to different people depending on what is in the form. It is also possible to turn e-mails on or off or to send different e-mails depending on what is in the form.
Here, we'll look at an example where there are three different e-mails and which ones are sent is controlled by three checkboxes in the form.
Getting ready
Nothing special is required except that your form has the appropriate check-boxes and that there are three Email Setups.
How to do it...
1. Here's the HTML for the checkboxes:
<div class="form_item"> <div class="form_element cf_checkbox"> <label class="cf_label" style="width: 150px;"> Click Me to Edit</label> <div class="float_left"> <input value="1" title="" class="radio" id="check00" name="check0[]" type="checkbox" /> <label for="check00" class="check_label" >e-mail 1</label><br /> <input value="2" title="" class="radio...