• Resolved orbitapps

    (@orbitapps)


    Hello, we are working on the development of this site, which has a contact form, this we did using Contact Form 7 (5.1.1.) And Contact Form 7 Conditional Fields (1.4.1.), The version of my wordpress is 5.1.1. and we are working on DIVI in its latest version as well.

    It happens that we use Contact Form 7 Conditional Fields, to give the user the option to select a Colombian department and then select one of the sellers of that department, depending on the vendor that is selected, a text message will be sent to his mail, but the form worked well until a week ago, and on Friday we found a flaw, we were carrying out sending tests to each contact of the form but we did not achieve it, because by clicking on send, we get the text “There was a error trying to send your message, please try again later.”, this is shown inside a red box. But, after trying all the options of drop-down, I realized that I select the last option to deploy the department, which for this case is “Valle”, if the shipment works.

    This is the code we have in the form:

    <div class=”cont-formulario”>
    <div class=”cont-2col”>
    [text* your-name class:label-form placeholder “Nombre”]
    </div>

    <div class=”cont-2col”>
    [text* Apellido class:label-form placeholder “Apellido”]
    </div>

    <div class=”cont-2col”>
    [email* your-email class:label-form placeholder “Correo electrónico”]
    </div>

    <div class=”cont-2col”>
    [tel* Numero_telefonico class:label-form placeholder “Número Telefónico”]
    </div>

    <div class=”cont-2col”>
    [select* Departamentos class:label-form placeholder “Departamento” “Antioquia” “Atlántico” “Bolívar” “Boyacá” “Caldas” “Cesar” “Chocó” “Córdoba” “Cundinamarca” “La Guajira” “Magdalena” “Putumayo” “Santander” “Sucre” “Tolima” “Valle”]
    </div>

    <div class=”cont-2col”>
    [group Antioquia clear_on_hide]
    [select* destinatario class:label-form placeholder “Asesor” “Arbey Vásquez|[email protected]” “Carlos Lopez|[email protected]” “David Vallejo|[email protected]” “Felipe Mariaka|[email protected]” “Julian Tobón|[email protected]”]
    [/group]

    [group Atlantico clear_on_hide]
    [select* destinatario class:label-form placeholder “Asesor” “Carlos Guzmán|[email protected]” “Katrina Lux|[email protected]”]
    [/group]

    [group Bolivar clear_on_hide]
    [select* destinatario class:label-form placeholder “Asesor” “Carlos Guzmán|[email protected]” “Katrina Lux|[email protected]”]
    [/group]

    [group Boyaca clear_on_hide]
    [select* destinatario class:label-form placeholder “Asesor” “Arbey Vásquez|[email protected]” “Carlos Sánchez|[email protected]” “Nelson García|[email protected]”]
    [/group]

    [group Caldas clear_on_hide]
    [select* destinatario class:label-form placeholder “Asesor” “Arbey Vásquez|[email protected]”]
    [/group]

    [group Cesar clear_on_hide]
    [select* destinatario class:label-form placeholder “Asesor” “Carlos Guzmán|[email protected]”]
    [/group]

    [group Choco clear_on_hide]
    [select* destinatario class:label-form placeholder “Asesor” “David Vallejo|[email protected]” “Felipe Mariaka|[email protected]”]
    [/group]

    [group Cordoba clear_on_hide]
    [select* destinatario class:label-form placeholder “Asesor” “Felipe Mariaka|[email protected]”]
    [/group]

    [group Cundinamarca clear_on_hide]
    [select* destinatario class:label-form placeholder “Asesor” “Alejandra Rios Gonzalez|[email protected]” “Arbey Vásquez|[email protected]” “Carlos Sánchez|[email protected]” “Jorge Alberto Rincón|[email protected]” “Nelson García|[email protected]” “Paola Lozada|[email protected]”]
    [/group]

    [group La_Guajira clear_on_hide]
    [select* destinatario class:label-form placeholder “Asesor” “Carlos Guzmán|[email protected]”]
    [/group]

    [group Magdalena clear_on_hide]
    [select* destinatario class:label-form placeholder “Asesor” “Carlos Guzmán|[email protected]” “Katrina Lux|[email protected]”]
    [/group]

    [group Putumayo clear_on_hide]
    [select* destinatario class:label-form placeholder “Asesor” “Nelson García|[email protected]”]
    [/group]

    [group Santander clear_on_hide]
    [select* destinatario class:label-form placeholder “Asesor” “Arbey Vásquez|[email protected]”]
    [/group]

    [group Sucre clear_on_hide]
    [select* destinatario class:label-form placeholder “Asesor” “Carlos Guzmán|[email protected]” “Felipe Mariaka|[email protected]”]
    [/group]

    [group Tolima clear_on_hide]
    [select* destinatario class:label-form placeholder “Asesor” “Carlos Sánchez|[email protected]”]
    [/group]

    [group Opcion_Valle clear_on_hide]
    [select* destinatario class:label-form placeholder “Asesor” “Ana Piedrahíta|[email protected]”]
    [/group]

    </div>
    <div class=”cont-1col”>
    [text* your-subject class:label-form-ancho placeholder “Asunto”]
    [textarea* your-message class:label-form-ancho class:label-mensaje placeholder “Escriba su mensaje aquí”]
    </div>

    <div class=”boton”>
    [submit class:boton-enviar “ENVIAR”]
    </div>
    </div>

    This is how the email module is configured:

    To: [recipient]
    From: Starpets <[email protected]>
    Subject: Starpets “[your-subject]”
    Additional headers: Reply-To: [your-email]
    Message body:
    From: [your-name] <[your-email]>
    Department: [_raw_Departamentos]
    Seller: [_raw_destinatario]
    Subject: [your-subject]

    Message body:
    [your-message]


    This message has been sent from a contact form in Starpets (https://www.starpets.com.co)

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    You cannot use the same name twice. So you need to rename your destinatario fields to destinatario-1 destinatario-2 destinatario-2 …

    Thread Starter orbitapps

    (@orbitapps)

    Hello Jules, I am grateful for your answer, but now I have a new error, this one already in the administration panel, in the email tab of the contact form, in the field “for” it tells me “A configuration error has been detected in This tab “” Incorrect syntax for the mailbox. ” I have this tab like this:

    To: [recipient]
    From: Starpets <[email protected]>
    Subject: Starpets “[your-subject]”
    Additional headers: Reply-To: [your-email]
    Message body:

    From: [your-name] <[your-email]>
    Department: [_raw_Departamentos]
    Seller: [_raw_destinatario]
    Subject: [your-subject]

    Message body:
    [your-message]


    This message has been sent from a contact form in Starpets (https://www.starpets.com.co)

    Plugin Author Jules Colle

    (@jules-colle)

    before you can use something like To: [recipient], you need to make sure that there is actually a field called [recipient] in your form. This is basic CF7 and has nothing to do with the conditional fields anymore in my opinion. You’d probably head over to the CF7 support forum.

    Thread Starter orbitapps

    (@orbitapps)

    I understand, but you already know this process and knowing that I use the conditional fields, you would not know what data should I put here? I happen to be watching the tutorials of CF7, but in that field they always indicate to send an email, it is fine if it were a single recipient, but as you can see in the code that I sent you previously, I will manage several recipients and that’s where I block, I do not know what data to put in the field “To:”

    Thread Starter orbitapps

    (@orbitapps)

    As I understand, I should put in the field “To:” the text “recipient-1” that corresponds to group 1, but I have 16 groups and each group contains a series of recipients, as I ask the CF7 to send it to that recipient in specific? try putting in the field “To:” the 16 groups so [recipient-1] [recipient-2] … but do not take it

    Now, if in the field “To:” I put these characters [your-name] <[your-email]> that are indicated in the CF7 tutorial, it shows me the message that was sent correctly, but messages never arrive at the mailbox of the selected email

    so the code is configured now, according to your indication:

    <div class=”cont-formulario”>
    <div class=”cont-2col”>
    [text* your-name class:label-form placeholder “Nombre”]
    </div>

    <div class=”cont-2col”>
    [text* Apellido class:label-form placeholder “Apellido”]
    </div>

    <div class=”cont-2col”>
    [email* your-email class:label-form placeholder “Correo electrónico”]
    </div>

    <div class=”cont-2col”>
    [tel* Numero_telefonico class:label-form placeholder “Número Telefónico”]
    </div>

    <div class=”cont-2col”>
    [select* Departamentos class:label-form placeholder “Departamento” “Antioquia” “Atlántico” “Bolívar” “Boyacá” “Caldas” “Cesar” “Chocó” “Córdoba” “Cundinamarca” “La Guajira” “Magdalena” “Putumayo” “Santander” “Sucre” “Tolima” “Valle”]
    </div>

    <div class=”cont-2col”>
    [group Antioquia clear_on_hide]
    [select* destinatario-1 class:label-form placeholder “Asesor” “Arbey Vásquez|[email protected]” “Carlos Lopez|[email protected]” “David Vallejo|[email protected]” “Felipe Mariaka|[email protected]” “Julian Tobón|[email protected]” “Edwin Gmail|[email protected]” “Edwin Hotmail|[email protected]” “Edwin Orbitapps|[email protected]”]
    [/group]

    [group Atlantico clear_on_hide]
    [select* destinatario-2 class:label-form placeholder “Asesor” “Carlos Guzmán|[email protected]” “Katrina Lux|[email protected]”]
    [/group]

    [group Bolivar clear_on_hide]
    [select* destinatario-3 class:label-form placeholder “Asesor” “Carlos Guzmán|[email protected]” “Katrina Lux|[email protected]”]
    [/group]

    [group Boyaca clear_on_hide]
    [select* destinatario-4 class:label-form placeholder “Asesor” “Arbey Vásquez|[email protected]” “Carlos Sánchez|[email protected]” “Nelson García|[email protected]”]
    [/group]

    [group Caldas clear_on_hide]
    [select* destinatario-5 class:label-form placeholder “Asesor” “Arbey Vásquez|[email protected]”]
    [/group]

    [group Cesar clear_on_hide]
    [select* destinatario-6 class:label-form placeholder “Asesor” “Carlos Guzmán|[email protected]”]
    [/group]

    [group Choco clear_on_hide]
    [select* destinatario-7 class:label-form placeholder “Asesor” “David Vallejo|[email protected]” “Felipe Mariaka|[email protected]”]
    [/group]

    [group Cordoba clear_on_hide]
    [select* destinatario-8 class:label-form placeholder “Asesor” “Felipe Mariaka|[email protected]”]
    [/group]

    [group Cundinamarca clear_on_hide]
    [select* destinatario-9 class:label-form placeholder “Asesor” “Alejandra Rios Gonzalez|[email protected]” “Arbey Vásquez|[email protected]” “Carlos Sánchez|[email protected]” “Jorge Alberto Rincón|[email protected]” “Nelson García|[email protected]” “Paola Lozada|[email protected]”]
    [/group]

    [group La_Guajira clear_on_hide]
    [select* destinatario-10 class:label-form placeholder “Asesor” “Carlos Guzmán|[email protected]”]
    [/group]

    [group Magdalena clear_on_hide]
    [select* destinatario-11 class:label-form placeholder “Asesor” “Carlos Guzmán|[email protected]” “Katrina Lux|[email protected]”]
    [/group]

    [group Putumayo clear_on_hide]
    [select* destinatario-12 class:label-form placeholder “Asesor” “Nelson García|[email protected]”]
    [/group]

    [group Santander clear_on_hide]
    [select* destinatario-13 class:label-form placeholder “Asesor” “Arbey Vásquez|[email protected]”]
    [/group]

    [group Sucre clear_on_hide]
    [select* destinatario-14 class:label-form placeholder “Asesor” “Carlos Guzmán|[email protected]” “Felipe Mariaka|[email protected]”]
    [/group]

    [group Tolima clear_on_hide]
    [select* destinatario-15 class:label-form placeholder “Asesor” “Carlos Sánchez|[email protected]”]
    [/group]

    [group Opcion_Valle clear_on_hide]
    [select* destinatario-16 class:label-form placeholder “Asesor” “Ana Piedrahíta|[email protected]”]
    [/group]

    </div>
    <div class=”cont-1col”>
    [text* your-subject class:label-form-ancho placeholder “Asunto”]
    [textarea* your-message class:label-form-ancho class:label-mensaje placeholder “Escriba su mensaje aquí”]
    </div>

    <div class=”boton”>
    [submit class:boton-enviar “ENVIAR”]
    </div>
    </div>

    Thread Starter orbitapps

    (@orbitapps)

    I’ve gone ahead a bit, followed your directions and gave a different name to each one, as you can see in this example:

    [grupo Atlántico clear_on_hide]
    [select * destinatario-2 class: label-form placeholder “Asesor” “Carlos Guzmán|[email protected]” “Katrina Lux|[email protected]”]
    [ /grupo]

    [grupo Bolívar clear_on_hide]
    [seleccione * destinatario-3 clase: marcador de posición en forma de etiqueta “Asesor” “Carlos Guzmán|[email protected]” “Katrina Lux|[email protected]”]
    [ /grupo]

    but, as you can see, each group has an email list, which in the front translates, that when a user selects a department, then a list of contacts is opened, from which you can select one and that is the one to whom you owe get the message

    The mess is in the “email” tab, in the “To:” field, because here I did not know what to write, I used my logic a bit and I put the names assigned as recipient to each group, thus:

    For:[destinatario-1],[destinatario-2],[destinatario-3],[destinatario-4],[destinatario-5],[destinatario-6],[destinatario-7],[destinatario-8],[destinatario-9],[destinatario-10],[destinatario-11],[destinatario-12],[destinatario-13],[destinatario-14],[destinatario-15],[destinatario-16]

    up here very well, because I did not show a syntax error, now I went to the front to do send tests to Gmail, Hotmail and another, but here comes the weirdest, if I try sending to the contact of gmail it works, then I send it to the of hotmail and I get an alert in orange border indicating that it can not be sent, now I try again to send to Gmail and I get the orange error that I did not before, then try again to send to hotmail and it works. The truth is I do not know what I’m doing wrong, I do not know if there’s a way to give you access and give me a hand to check that I’m setting up badly, can you do it? or do you have any ideas for me?

    Plugin Author Jules Colle

    (@jules-colle)

    it should be group, not grupo. An orange border means that your message is considered to be spam. Please read up on the documentation of CF7 and then follow the tutorial at https://conditional-fields-cf7.bdwm.be/conditional-fields-for-contact-form-7-tutorial/

    Then come back to me with a small piece of code that you feel should work, and that you have actually double checked for typo’s.

    I’m really willing to help, but please make your questions clear and simple and make sure the code is correct. I put a lot of effort in creating this free plugin and giving support, and it would really help if you do a bit of research first and then put some effort in explaining your problem as clearly and simply as possible.

    Thread Starter orbitapps

    (@orbitapps)

    Hi Jules, it happens that I’m in Colombia and my wordpress is in Spanish, that’s why you can see in my code that says “Group” and not “Group”, it’s not a typographical error for me really. Now, if you tell me that I should change the text of the code to English I will do it, but do some tests and the problem seems to be with the Akismet, nothing with the configuration, this is what the orange border error reports.

    Actually try to be as explicit as possible when writing the problem, so I dared to copy the complete codes for your visualization, but I do not know what else I can tell you. In summary, I just want to know what I should put in the “To:” field of the “email” tab.

    Plugin Author Jules Colle

    (@jules-colle)

    Regardless of your language [group] tags should always be group and cannot be translated. Anyway, I’m going to assume you are aware of this and that you did not make any typo’s. In that case the TO field should say:

    [Antioquia][destinatario-1][/Antioquia][Atlantico][destinatario-2][/Atlantico][Bolivar][destinatario-3][/Bolivar] and so on …

    • This reply was modified 5 years, 7 months ago by Jules Colle.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘I have several recipients, but only send one of them’ is closed to new replies.