Title: Problem with conditional email
Last modified: March 12, 2018

---

# Problem with conditional email

 *  Resolved [Branding Addicted](https://wordpress.org/support/users/brandingaddicted/)
 * (@brandingaddicted)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/problem-with-conditional-email/)
 * Hi guys,
    we noticed a big problem in email sending. We created this form:
 * <!– CONDITIONAL –>
    <div style=”background-color:#e40421; color:#ffffff;margin-
   bottom: 30px;”> [dynamichidden you-codcli “CF7_GET key=’store_id'”] <p style=”
   font-size:2em;font-weight:bold;”>YOU CHOOSE THIS MECHANIC:</p> [group name50]
   <p style=”font-size:1.4em;font-weight:bold;”>MECHANIC 01</p> address address 
   address Tel.: 999 999 999 [hidden emailofficina “email01@email.com”] [/group][
   group name50] <p style=”font-size:1.4em;font-weight:bold;”>MECHANIC 02</p> address
   address address Tel.: 999 999 999 [hidden emailofficina “email02@email.com”] [/
   group] [group name50] <p style=”font-size:1.4em;font-weight:bold;”>MECHANIC 03
   </p> address address address Tel.: 999 999 999 [hidden emailofficina “email03@email.
   com”] [/group] </div> <!– EN CONDITIONAL –> <!– FORM –> <div> <p>Honda SH Model
   </p> <p>[select* your-model include_blank “SH 125/150 (2005 > 2009)” “SH 125/
   150 – Doppio Disco (2010 > 2013)” “SH 125/150 – ABS (2013 > 2016)” “SH 300 (2007
   > 2015)”] </p> <p>Enrolment Year</p> <p>[select* your-anno include_blank “2017”“
   2016” “2015” “2014” “2013” “2012” “2011” “2010” “2009” “2008” “2007” “2006” “
   2005”] </p> <p>Nome e Cognome</p> <p>[text* your-name placeholder “es. Mario 
   Rossi”]</p> <p>Telefono</p> <p>[text* your-phone placeholder “es. 060606 oppure
   333444555”]</p> <p>Indirizzo email</p> <p>[text* your-email placeholder “es. 
   [mariorossi@email.com](https://wordpress.org/support/topic/problem-with-conditional-email/mariorossi@email.com?output_format=md)”]
   </p> <p>[submit “SEND”]</p> </div> <!– END FORM –>
 * Then we created rules to show the right group of information…and until this step
   everithing goes right: when a customer choose one !
 * In email settings, we put [emailofficina] in **To** field.
 * But here start problems: both if customer choose the first or second or third
   mechanic, the email will arrive to the third address (email03@email.com).
 * It seems “hidden emailofficina” field to register only the last value we pass.
 * Could you help us to fix it?
    Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-conditional-email%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/problem-with-conditional-email/#post-10067076)
 * all field names need to be unique
 *  Thread Starter [Branding Addicted](https://wordpress.org/support/users/brandingaddicted/)
 * (@brandingaddicted)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/problem-with-conditional-email/#post-10068431)
 * Sorry, I wrote wrong code in first post, I write again in correct way:
 * <!– CONDITIONAL –>
    <div style=”background-color:#e40421; color:#ffffff;margin-
   bottom: 30px;”> [dynamichidden you-codcli “CF7_GET key=’store_id’”] <p style=”
   font-size:2em;font-weight:bold;”>YOU CHOOSE THIS MECHANIC:</p> [group name01]
   <p style=”font-size:1.4em;font-weight:bold;”>MECHANIC 01</p> address address 
   address Tel.: 999 999 999 [hidden emailofficina “email01@email.com”] [/group][
   group name02] <p style=”font-size:1.4em;font-weight:bold;”>MECHANIC 02</p> address
   address address Tel.: 999 999 999 [hidden emailofficina “email02@email.com”] [/
   group] [group name03] <p style=”font-size:1.4em;font-weight:bold;”>MECHANIC 03
   </p> address address address Tel.: 999 999 999 [hidden emailofficina “email03@email.
   com”] [/group] </div> <!– EN CONDITIONAL –> <!– FORM –> <div> <p>Honda SH Model
   </p> <p>[select* your-model include_blank “SH 125/150 (2005 > 2009)” “SH 125/
   150 – Doppio Disco (2010 > 2013)” “SH 125/150 – ABS (2013 > 2016)” “SH 300 (2007
   > 2015)”] </p> <p>Enrolment Year</p> <p>[select* your-anno include_blank “2017”“
   2016” “2015” “2014” “2013” “2012” “2011” “2010” “2009” “2008” “2007” “2006” “
   2005”] </p> <p>Nome e Cognome</p> <p>[text* your-name placeholder “es. Mario 
   Rossi”]</p> <p>Telefono</p> <p>[text* your-phone placeholder “es. 060606 oppure
   333444555”]</p> <p>Indirizzo email</p> <p>[text* your-email placeholder “es. 
   [mariorossi@email.com](https://wordpress.org/support/topic/problem-with-conditional-email/mariorossi@email.com?output_format=md)“]
   </p> <p>[submit “SEND”]</p> </div> <!– END FORM –>
 * You are suggesting me to write:
    [hidden emailofficina01 “email03@email.com”][
   hidden emailofficina02 “email03@email.com”] [hidden emailofficina03 “email03@email.
   com”]
 * So, what I need to write inside “TO” field in mail settings?
    [http://prntscr.com/iqhwxp](http://prntscr.com/iqhwxp)
 * Thanks
 *  Thread Starter [Branding Addicted](https://wordpress.org/support/users/brandingaddicted/)
 * (@brandingaddicted)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/problem-with-conditional-email/#post-10072646)
 * Hi,
    any news for us? Thanks
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/problem-with-conditional-email/#post-10073822)
 * `[name01][emailofficina01][/name01][name02][emailofficina02][/name02][name03][
   emailofficina03][/name03]`
 *  Thread Starter [Branding Addicted](https://wordpress.org/support/users/brandingaddicted/)
 * (@brandingaddicted)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/problem-with-conditional-email/#post-10089924)
 * Hi Julius,
    it worked! Thanks
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/problem-with-conditional-email/#post-10089990)
 * sure thing! please consider leaving a review if you like the plugin 😉

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

The topic ‘Problem with conditional email’ is closed to new replies.

 * ![](https://ps.w.org/cf7-conditional-fields/assets/icon-256x256.png?rev=2072595)
 * [Conditional Fields for Contact Form 7](https://wordpress.org/plugins/cf7-conditional-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-conditional-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-conditional-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-conditional-fields/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/problem-with-conditional-email/#post-10089990)
 * Status: resolved