0

EE 2.9.3 FF 4.2.2

I've got a Freeform form where I'm using recipients, but it's not sending emails to the recipients. However if I use notify_admin and admin_notify with the same notification template that email gets sent.

clearly emails are able to be sent but using recipients is not working. I've checked and checked and am unable to find any typos or obvious mistakes. Have also copied code to a blank template and it continues to behave incorrectly.

    {exp:freeform:form 
      form_id="1" 
      form:class="form-horizontal" 
      required="" 
      return="contact/thank-you" 
      status="open"
      notify_admin="yes"
      admin_notify="[email protected]"
      admin_notification_template="contact_notification" 
      recipient_template="contact_notification"
      recipients="yes"
      recipient1="John|[email protected]"
      recipient2="Stacy|[email protected]"
      recipient3="Bill|[email protected]"
    }

      <fieldset>

        <!-- Select Basic -->
        <div class="form-group">

            <select id="province" name="province" class="form-control">

              <option required class="orange">Contact Person</option>

              {freeform:recipients}
                  <option
                      value="{freeform:recipient_value}"
                      {if freeform:recipient_selected}selected="selected"{/if}>
                      {freeform:recipient_name}
                  </option>
              {/freeform:recipients}
            </select>

        </div>

more fields here

      {/exp:freeform:form}

1 Answer 1

1

Your opening select tag should be, I believe:

<select name="recipient_email">

And not what you have name="province", from https://www.solspace.com/docs/freeform/form/#recipient_email

<label>Choose Recipients</label>
<select name="recipient_email">
{freeform:recipients}
    <option
        value="{freeform:recipient_value}"
        {if freeform:recipient_selected}selected="selected"{/if}>
        {freeform:recipient_name}
    </option>
{/freeform:recipients}
</select>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.