Support » Plugin: Contact Form 7 » Sending to different addresses based on checkbox selected

  • Resolved sixfootjames



    I’ve read about using the pipe option which allows one to select to different people, but I need to be able to do this based on the checkbox selection someone makes which will then send to either one or two parties.

    For instance, if someone chooses that they are interested in any of the below options

    1. Kitchens
    2. Dining Room
    3. Lounge

    it would send to the Kitchen and Dining Room departments if the person selected the Kitchens and Dining Rooms checkboxes. If they select only Lounge, it would send only to the Lounge department.

    Hope this makes sense?

    Thank you!

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Takayuki Miyoshi


    The pipe is available for checkboxes as well as drop-down menu.

    Thanks Takayuki, I will have a look at it again in the morning.
    Very quick response, thanks.

    Hi Takayuki

    I’ve tried it with a SELECT which worked well but as soon as I use the CHECKBOX option as below…

    [checkbox i_am_interested_in class:i_am_interested_in use_label_element email-recipient “General|james…” “Undergraduate admission|james@va…”]

    (removed domain names in emails)

    I get an error message…

    “Failed to send your message. Please try later or contact the administrator by another method.”

    I’m following examples from this guy’s site too but nothing I am doing has worked:

    Is there something specific that needs to happen with checkboxes?


    Plugin Author Takayuki Miyoshi


    What did you put in the To field in the Mail section?

    In the To field I have [email-recipient] Takayuki.

    Plugin Author Takayuki Miyoshi


    See docs first.

    You are using wrong tag.

    Hi Takayuki,

    Thank you but believe me when I say I have read through all of your documentation and applied several options and tested again and again.

    I am now following this tutorial of yours:

    Selectable Recipient with Pipes

    Here is my sample again:

    [checkbox i-am-interested-in class:i_am_interested_in use_label_element your-recipient “Undergraduate studies|” “Postgraduate studies|” “Careers|” “Research|” “General|”]

    And this is in my TO: field


    I do appreciate your help.

    Plugin Author Takayuki Miyoshi


    [checkbox i-am-interested-in class:i_am_interested_in use_label_element your-recipient “Undergraduate studies|” “Postgraduate studies|” “Careers|” “Research|” “General|”]

    When you use this form-tag in a form, the corresponding mail-tag is [i-am-interested-in]. Not [your-recipient].

    Getting Started with Contact Form 7

    Thanks Takayuki.

    I misinterpreted the instructions it seems but upon copying example exactly, I came right in the end which is as you explain it above.

    I thought that your-recipient was THE tag that MUST be used to pull all the emails through.

    I am having a slightly different problem now but I will first do some research again and then ask the question.

    Thanks again for you time!

    Sorted! Thanks again Takayuki! Great plugin.

    I was having a similar problem suddenly this morning on a client’s site. I don’t know why it suddenly started, but in my case, it had to do with spaces before and/or after the pipes in the recipient selections. Once I removed those it worked again.

    My guess is that perhaps an update made the plugin more picky for syntax on the selections?

    How it looked before:
    [select choose-recipient "General Contact |" "Some Department Name |" "Another Person | Joe Citizen <>" "Asst. to Joe | Joe Citizen Jr <>"]

    What fixed it:
    [select choose-recipient "General Contact|" "Some Department Name|" "Another Person|Joe Citizen<>" "Asst. to Joe|Joe Citizen Jr<>"]

    Thank you graphicpilot! That solved my problem. I’ve been trying to find the solution for hours.

    I am having the same problem, but can’t figure out what I have wrong.

    <p>Your Name (required)
    [text* your-name] </p>

    <p>Your Email (required)
    [email* your-email] </p>

    <p> Send to: [select choose-recipient “Membership|” “Waitlist|”]</p>

    [text your-subject] </p>

    <p>Your Message
    [textarea your-message] </p>

    <p>[submit “Send”]</p>

    Having the same problem here even after removing spaces on each side of the pipes.

    Hopefully the developer will jump in this topic soon.


    Même souci, cela fait des heures ( et encore je suis modeste)
    que je tourne en rond pour trouver la solution
    Impossible d’envoyer à un destinataire sélectionné dans le menu déroulant
    la syntaxe que j’utilise est par exemple
    [select votre-destinataire “support |” “vente |”]
    Dans le champ A des emails j’indique [votre-destinaire]
    j’ai retourné le problème dans tous les sens
    supprimé les espaces
    Ca ne fonctionne pas
    Est ce que cela peut provenir d’une fonction php a activer
    D’avance merci pour votre aide

    As I am French, yes nobody is perfect
    I put the translation of my post provided by Google 🙂


    Same problem, it’s been hours (and still I am modest)
    I turn around to find the solution
    Unable to send a selected destination from the drop down menu
    the syntax I use is for example
    [select your-recipient “support |” “sale | sale @“]
    In the To field of the emails I indicate [your-recipient]
    I returned the problem in all directions
    removing leading spaces
    It does not work

    Does it can come from a php function enable

    Thank you in advance for your help
    @ +

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Sending to different addresses based on checkbox selected’ is closed to new replies.