• Anonymous User

    (@anonymized-6925911)


    I tried to set up Contact Form 7 with the option to select the recipient from a drop down menu.
    When I try to send a message, only the message is delivered to the SENDER, not to the recipient.
    Can anybody help me to configure it in the right way?

    Kind regards,
    Guido

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    I assume you followed this tutorial: https://contactform7.com/selectable-recipient-with-pipes/ ?

    Can you post your form setup and Recipient field configuration here?

    Thread Starter Anonymous User

    (@anonymized-6925911)

    Hi,
    Yes, you’re right, I followed that tutorial. I am sorry that I didn’t tell that in my question.

    The website is in Dutch. The form (first tab) contains:

    Bericht voor [select your-recipient “H|[email protected]
    “me|[email protected]
    “me2|[email protected]”]

    <label> Uw naam (verplicht)
    [text* your-name] </label>

    <label> Uw-mailadres (verplicht)
    [email* your-email] </label>

    <label> Onderwerp
    [text your-subject] </label>

    <label> Uw bericht
    [textarea your-message] </label>

    [submit “Verzenden”]

    The second tab (Mail) will be shown at https://www.hooglandsemaatjes.nl/wp-content/uploads/2019/02/hm_20190220.jpg.

    Is that what you want to know to help me?

    Kind regards,
    Guido

    Hi,

    in the field “Aan”, you have hard-coded (your) email address, but you want to use the value of “your-recipient” select field, so you have to fill [your-recipient] in there.

    Kind regards,
    ?eslav

    Thread Starter Anonymous User

    (@anonymized-6925911)

    Hi,
    Thank for your reply.

    That option was one of the things I thought, but when entering that I get an error:
    Beneath the tabs a line says (I translate): One configuration error found at this tab.

    Beneath the “Aan” field it says (I translate):
    There is used an invalid mailbox syntax

    I think only
    [your-recipient]
    is not enough.

    Hope you can help me.

    Kind regards,
    Guido van Harten

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    See How to Resolve Configuration Errors > Invalid mailbox syntax is used.

    In your case, the error occurs because the your-recipient (“Bericht voor”) field in the form isn’t a required field. Use select*, the required version of select form-tag.

    Thread Starter Anonymous User

    (@anonymized-6925911)

    Hi, thank you very much. The final solution is close. The Form tab starts with:

    Bericht voor [select* your-recipient “user1|[email protected]
    “user2|[email protected]
    “user3|[email protected]”]

    Sending a mail to user1 and user2 were sending correct. Sending to user3 will result in an error (I try to translate): An error occured while sending the message; please retry later.

    Kind regards,
    Guido

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘mail only sent to sender’ is closed to new replies.