Title: eMail Problem
Last modified: April 17, 2020

---

# eMail Problem

 *  Resolved [Steinfranken](https://wordpress.org/support/users/steinfranken/)
 * (@steinfranken)
 * [6 years ago](https://wordpress.org/support/topic/email-problem-25/)
 * Hi,
    I have two questions. I made a contactform with 2 selectors. First you have
   to choose a therapie, then it will show the correct doctor. Perfect, works fine!
 * Now my 2 problems:
    1.) In the eMail that is sended by contactform it does not
   show the doctor, that is selected, it only works if there is only one therapie
   and one doctor. For sure I have to specify with more steps, but I don’t know 
   where and how. 2.) Is it possible to assign the correct result to the correct
   doctor? Will say doctor 1 = [doctor1@test.com](https://wordpress.org/support/topic/email-problem-25/doctor1@test.com?output_format=md)
   doctor 2 = [doctor2@test.com](https://wordpress.org/support/topic/email-problem-25/doctor2@test.com?output_format=md)…
   they only will get the requests exactly for them.
 * Thx for help
 * Andreas
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Femail-problem-25%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [6 years ago](https://wordpress.org/support/topic/email-problem-25/#post-12691189)
 * For simplicity let’s say you have a selection like this:
 *     ```
       osteopathy
         - doctor John (john@dmail.com)
         - doctor Ursula (ursula@dmail.com)
       rehabilitation
         - doctor Gregor (gregor@dmail.com)
         - doctor Ann (ann@dmail.com)
       ```
   
 * The form looks like this:
 *     ```
       [select treatment "osteopathy" "rehabilitation"]
       [group osteopathy]
         [select osteopathy-doctor "doctor John|john@dmail.com" "doctor Ursula|ursula@dmail.com"]
       [/group]
       [group rehabilitation]
         [select rehabilitation-doctor "doctor Gregor|gregor@dmail.com" "doctor Ann|ann@dmail.com"]
       [/group]
       ```
   
 * conditions look like this:
 *     ```
       show [osteopathy] if [treatment] equals "osteopathy"
       show [rehabilitation] if [treatment] equals "rehabilitation"
       ```
   
 * Then, if you want to make sure the right doctors get the email, something like
   this should work inside the To field (or after Bcc: in the header)
    `[osteopathy][
   osteopathy-doctor][/osteopathy][rehabilitation][rehabilitation-doctor][/rehabilitation]`
 * In the email body you could do something similar:
 *     ```
       [osteopathy]
         You chose Osteopathy and made an appointment with [doctor-osteopathy].
       [/osteopathy]
       [rehabilitation]
         You chose Rehabilitation and made an appointment with [doctor-rehabilitation].
       [/rehabilitation]
       ```
   
 * Read up on some concepts here:
    [https://contactform7.com/selectable-recipient-with-pipes/](https://contactform7.com/selectable-recipient-with-pipes/)
   [https://conditional-fields-cf7.bdwm.be/docs/faq/can-i-use-conditional-logic-in-the-email-message/](https://conditional-fields-cf7.bdwm.be/docs/faq/can-i-use-conditional-logic-in-the-email-message/)
 *  Thread Starter [Steinfranken](https://wordpress.org/support/users/steinfranken/)
 * (@steinfranken)
 * [6 years ago](https://wordpress.org/support/topic/email-problem-25/#post-12693463)
 * Hi Jules,
 * works like a charme. I just bought your plugin to support you and your fantastic
   support!
 * Cheers
 * Andreas
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [6 years ago](https://wordpress.org/support/topic/email-problem-25/#post-12693565)
 * Thanks! Really appreciate it 🙂

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

The topic ‘eMail Problem’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/email-problem-25/#post-12693565)
 * Status: resolved