Support » Plugins and Hacks » [Resolved] Sending to different addresses based on checkbox selected

[Resolved] Sending to different addresses based on checkbox selected

  • Hi,

    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….@gmail.com” “Undergraduate admission|james@va…co.za”]

    (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: http://brandoncoppernoll.com/how-to-use-pipes-in-contact-form-7/

    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|james1@gmail.com” “Postgraduate studies|james2@gmail.com” “Careers|james3@gmail.com” “Research|james4@gmail.com” “General|james5@gmail.com”]

    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|james1@gmail.com” “Postgraduate studies|james2@gmail.com” “Careers|james3@gmail.com” “Research|james4@gmail.com” “General|james5@gmail.com”]

    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 | info@domain-name.org" "Some Department Name | address@domain-name.org" "Another Person | Joe Citizen <joe@domain-name.org>" "Asst. to Joe | Joe Citizen Jr <joejr@domain-name.org>"]

    What fixed it:
    [select choose-recipient "General Contact|info@domain-name.org" "Some Department Name|address@domain-name.org" "Another Person|Joe Citizen<joe@domain-name.org>" "Asst. to Joe|Joe Citizen Jr<joejr@domain-name.org>"]

    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|membership@ridgetop.org” “Waitlist|waitlist@ridgetop.org”]</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 | support@monasso.fr” “vente | vente@vente@monasso.fr”]
    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 | support@monasso.fr” “sale | sale @ vente@monasso.fr“]
    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 ‘[Resolved] Sending to different addresses based on checkbox selected’ is closed to new replies.