• Resolved sprocker

    (@sprocker)


    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/

    BUT the dropdown is not including the options…

    If I use this:

    [select your-recipient "CEO|ceo@example.com"
                        "Sales|sales@example.com"
                        "Support|support@example.com"]

    The site is showing:

    <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

    <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 to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    <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.

    Thread Starter sprocker

    (@sprocker)

    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

    (@takayukister)

    See 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.

    Thread Starter sprocker

    (@sprocker)

    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

    (@takayukister)

    Can you please include a screenshot?

    Thread Starter sprocker

    (@sprocker)

    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

    (@takayukister)

    Thread Starter sprocker

    (@sprocker)

    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

    (@sprocker)

    How do I dynamically change the recipient based on the dropdown?

    https://contactform7.com/selectable-recipient-with-pipes/ – this does not work – using the mail tag in the recipient field stops the form from completely

    Tente isso!

    https://alpesdata.com.br/blog/contact-form-7-e-mails-com-destinatarios-diferentes/

    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 2 years, 4 months ago by missemira.
    Thread Starter sprocker

    (@sprocker)

    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.