OK - I need some fresh eyes on this as I think it all looks correct but I'm not getting emails coming through.
- Freeform 4.0.12
- EE 2.6.1
- CP-generated email coming through fine
- Form entries appearing in FreeForm CP
Goals:
- Multiple recipients based on selected checkboxes
- Defaulting checkbox choice based on URL
- Selected names/appearing in the notification email
Template Code:
{exp:freeform:form
form:id="contact-form"
form_name="contact"
required="name|email"
return="contact/thanks"
recipients="yes"
recipient_limit="10"
recipient_template="to_era"
recipient1="recipient1|[email protected]"
recipient2="recipient2|[email protected]"
recipient3="recipient3|[email protected]"
recipient4="recipient4|[email protected]"
recipient5="recipient5|[email protected]"
recipient6="recipient6|[email protected]"
recipient7="recipient7|[email protected]"
recipient8="recipient8|[email protected]"
recipient9="recipient9|[email protected]"
recipient10="recipient10|[email protected]"
}
<p>
<label for="name">Name:</label><br />
<input type="text" id="name" name="name" size="40" maxlength="64" value="" class="textfield" />
</p>
<p>
<label for="email">Email:</label><br />
<input type="text" id="email" name="email" size="40" maxlength="128" value="" class="textfield" />
</p>
<p>
<label for="telephone">Telephone:</label><br />
<input type="text" id="telephone" name="telephone" size="40" maxlength="16" value="" class="textfield" />
</p>
<p>
<label for="availability">What is the best time for us to reach you?</label><br />
<input type="text" id="availability" name="availability" size="40" value="" class="textfield" />
</p>
<p>
<label for="message">Message:</label><br />
<textarea id="message" name="message" rows="18" cols="40" class="textfield"></textarea>
</p>
<fieldset id="community_checkboxes">
<legend>Select each of the communities are you interested in.</legend>
<p> {!-- ravenna --}
<input{if segment_2=="ravenna"} checked{/if} type="checkbox" id="{freeform:recipient_value1}" class="community_chbx" value="" name="recipient_email[]">
<label for="{freeform:recipient_value1}">{freeform:recipient_name1}</label>
</p>
<p>
<input{if segment_2=="wallingford"} checked{/if} type="checkbox" id="{freeform:recipient_value2}" class="community_chbx" value="" name="recipient_email[]">
<label for="{freeform:recipient_value2}">{freeform:recipient_name2}</label>
</p>
<p> {!--lakeshore--}
<input{if segment_2=="north-seattle"} checked{/if} type="checkbox" id="{freeform:recipient_value3}" class="community_chbx" value="" name="recipient_email[]">
<label for="{freeform:recipient_value3}">{freeform:recipient_name3}</label>
</p>
<p> {!-- broadview --}
<input{if segment_2=="mercer-island"} checked{/if} type="checkbox" id="{freeform:recipient_value4}" class="community_chbx" value="" name="recipient_email[]">
<label for="{freeform:recipient_value4}">{freeform:recipient_name4}</label>
</p>
<p> {!--wallingford --}
<input{if segment_2=="lakeshore"} checked{/if} type="checkbox" id="{freeform:recipient_value5}" class="community_chbx" value="" name="recipient_email[]">
<label for="{freeform:recipient_value5}">{freeform:recipient_name5}</label>
</p>
<p> {!-- mercer-island --}
<input{if segment_2=="issaquah"} checked{/if} type="checkbox" id="{freeform:recipient_value6}" class="community_chbx" value="" name="recipient_email[]">
<label for="{freeform:recipient_value6}">{freeform:recipient_name6}</label>
</p>
<p> {!--issaquah --}
<input{if segment_2=="broadview"} checked{/if} type="checkbox" id="{freeform:recipient_value7}" class="community_chbx" value="" name="recipient_email[]">
<label for="{freeform:recipient_value7}">{freeform:recipient_name7}</label>
</p>
<p> {!--bellevue --}
<input{if segment_2=="bellevue"} checked{/if} type="checkbox" id="{freeform:recipient_value8}" class="community_chbx" value="" name="recipient_email[]">
<label for="{freeform:recipient_value8}">{freeform:recipient_name8}</label>
</p>
<p>
<input type="checkbox" id="{freeform:recipient_value10}" class="community_chbx" value="" name="recipient_email[]">
<label for="{freeform:recipient_value10}">{freeform:recipient_name10}</label>
</p>
<p>
<input{if segment_2==""} checked{/if} type="checkbox" id="{freeform:recipient_value9}" class="community_chbx" value="" name="recipient_email[]">
<label for="{freeform:recipient_value9}">{freeform:recipient_name9}</label>
</p>
</fieldset>
<p><input id="button_submit" name="submit" type='submit' value='Submit Form' /></p>
{/exp:freeform:form}
Have I missed something obvious?
recipient_template
works?