Title: Drop down options
Last modified: January 13, 2023

---

# Drop down options

 *  Resolved [sprocker](https://wordpress.org/support/users/sprocker/)
 * (@sprocker)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/drop-down-options/)
 * Hi, I am trying to send an email to the recipient in a dropdown select as per
   this page: [https://contactform7.com/selectable-recipient-with-pipes/](https://contactform7.com/selectable-recipient-with-pipes/)
 * BUT the dropdown is not including the options…
 * If I use this:
 *     ```wp-block-code
       [select your-recipient "CEO|ceo@example.com"
                           "Sales|sales@example.com"
                           "Support|support@example.com"]
       ```
   
 * The site is showing:
 *     ```wp-block-code
       <select name="your-recipient" class="wpcf7-form-control wpcf7-select" aria-invalid="false"><option value="CEO">CEO</option><option value="Sales">Sales</option><option value="Support">Support</option></select>
       ```
   
 * How do I get the dropdown to use the options as per the content ie
 *     ```wp-block-code
       <select name="your-recipient" class="wpcf7-form-control wpcf7-select" aria-invalid="false"><option value="ceo@example.com">CEO</option><option value="sales@example.com">Sales</option><option value="support@example.com">Support</option></select>
       ```
   
 * or is there a better way to choose a recipient based on the dropdown selection?
 * I have added define( ‘WPCF7_USE_PIPE’, true ); in the functions file, no change!
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdrop-down-options%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/drop-down-options/#post-16372147)
 *     ```wp-block-code
       <select name="your-recipient" class="wpcf7-form-control wpcf7-select" aria-invalid="false"><option value="CEO">CEO</option><option value="Sales">Sales</option><option value="Support">Support</option></select>
       ```
   
 * It is the correct output expected when you use pipes. The reason behind this 
   is explained in the [doc you linked](https://contactform7.com/selectable-recipient-with-pipes/).
 *  Thread Starter [sprocker](https://wordpress.org/support/users/sprocker/)
 * (@sprocker)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/drop-down-options/#post-16372559)
 * Ah yes. I see that works, when I add the field to the body of the email but if
   I use that field in the recipient box the email fails to send.
 * I have tried it in the normal format and used _raw but both make the email fail
   to send.
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/drop-down-options/#post-16373851)
 * See [Setting up mail](https://contactform7.com/setting-up-mail/)
 * What email settings do you have in the Mail tab panel?
 * To protect personal data, hiding email addresses in the settings or replacing
   them with dummy addresses is strongly advised. You can also [include screenshots](https://wordpress.org/support/forum-user-guide/faq/#can-i-include-screenshots-or-videos).
 *  Thread Starter [sprocker](https://wordpress.org/support/users/sprocker/)
 * (@sprocker)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/drop-down-options/#post-16374744)
 * In to the “To” field I have tried
 * [your-recipient] and [_raw_your-recipient]
 * When I use this the email does not send.
 * When I change the email in the “To” field to a standard email the emails are 
   sent.
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/drop-down-options/#post-16375531)
 * Can you please include a screenshot?
 *  Thread Starter [sprocker](https://wordpress.org/support/users/sprocker/)
 * (@sprocker)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/drop-down-options/#post-16376600)
 * ![](https://i0.wp.com/www.supreme-homecare.com/wp-content/uploads/2023/01/Cap2.
   jpg?ssl=1)
 * ![](https://i0.wp.com/www.supreme-homecare.com/wp-content/uploads/2023/01/cap.
   jpg?ssl=1)
 * Sure – screen shots of the options I have tried – when I use a mailtag in “to”
   field the email does not send. If I just change the “to” field to a standard 
   email the dorm submits and send the email.
 * Hope that helps?
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/drop-down-options/#post-16379618)
 * See **[How to resolve configuration errors](https://contactform7.com/configuration-errors/)**
 *  Thread Starter [sprocker](https://wordpress.org/support/users/sprocker/)
 * (@sprocker)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/drop-down-options/#post-16380330)
 * I am only getting configuration errors when i use a mail tag in the ‘to’ field
 * and the others are to show the form screenshots.
 * To confirm, the form works great when the ‘to’ field is an email address. 
   when
   i try to use the mail tag in the to field it will not send.
 * thanks
 *  Thread Starter [sprocker](https://wordpress.org/support/users/sprocker/)
 * (@sprocker)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/drop-down-options/#post-16382789)
 * How do I dynamically change the recipient based on the dropdown?
 * [https://contactform7.com/selectable-recipient-with-pipes/](https://contactform7.com/selectable-recipient-with-pipes/)–
   this does not work – using the mail tag in the recipient field stops the form
   from completely
 *  [missemira](https://wordpress.org/support/users/missemira/)
 * (@missemira)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/drop-down-options/#post-16452017)
 * Tente isso!
 * [https://alpesdata.com.br/blog/contact-form-7-e-mails-com-destinatarios-diferentes/](https://alpesdata.com.br/blog/contact-form-7-e-mails-com-destinatarios-diferentes/)
 *     ```wp-block-code
       Exemplo da Tag completa (Com E-mails):
       <p>Departamento<br />
       [select* Departamentos include_blank "Atendimento|atendimento@seudominio.com.br" "Vendas|vendas@seudominio.com.br" "Suporte|suporte@seudominio.com.br" "Reclamações|reclamacoes@seudominio.com.br"]</p>
       ```
   
    -  This reply was modified 3 years, 4 months ago by [missemira](https://wordpress.org/support/users/missemira/).
 *  Thread Starter [sprocker](https://wordpress.org/support/users/sprocker/)
 * (@sprocker)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/drop-down-options/#post-16452524)
 * thank you for all of your support…
 * I think a recent update has solved the issue….the form is now sending the email
   to the recipient listed in the dropdown….and I have not changed anything… :0)

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Drop down options’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 12 replies
 * 3 participants
 * Last reply from: [sprocker](https://wordpress.org/support/users/sprocker/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/drop-down-options/#post-16452524)
 * Status: resolved