Forums

Chronoforms6 can't send message

bjems 16 Dec, 2018
Hello,

If I click send, it does not send the message (it just erases the fields) and I have to fill in the form again and then send to receive the email.No message confirmation too. 
As the confirmation message does not come as well, I had to redirect when sending the form (to see if it works or not for the customers). I activated the debugger and make off the redirection, in debugger mode everything seems to be good.
https://decap-pro.ch/contact.html

i tested with this link too : https://decap-pro.ch/contact.html?chronoform=formulaire-de-contact&event=submit it is better, but bugs too.
in the debugger :
Array
(
    [option] => com_chronoforms6
    [cont] => manager
    [chronoform] => formulaire-de-contact
    [event] => submit
    [genre_de_travaux_concernes] => Aéro & Micro-gommage
    [titre] => Société
    [societe] => 
    [nom] => asdf
    [prenom] => fasdf
    [adresse] => afsd
    [npalocalite] => asdf
    [email] => asdf@asdf.com
    [telephone] => 1321313131313
    [votre_message] => 23.44
    [ip_adress] => 193.240.0.0
    [envoyer] => 
    [fc_uid] => 11079cde3b219b27ace098b591c5d366
    [fcfavs] => {}
    [a0820184660d5fc62f7301554ed9cca9] => 1d60dc5e2523a19cc0519be0c1077fed
    [71dba5014fb39b807a23a02b5976ed39] => 8d080d36a8ed979b0eb3384abe63a789
    [92b130b96e3a1a1a95f86bad7732a552] => fr-FR
    [fc_screen_resolution] => 1280x855
)
Array
(
    [validate_fields2] => Array
        (
            [log] => Automatic validation enabled.
            [var] => 1
        )

    [save_data12] => Array
        (
            [data] => Array
                (
                    [created] => 2018-12-16 22:44:06
                    [date_time] => 2018-12-16 22:44:06
                    [ip_adress] => 193.240.0.0
                    [genre_de_travaux_concernes] => Aéro & Micro-gommage
                    [titre] => Société
                    [societe] => 
                    [nom] => asdf
                    [prenom] => fasdf
                    [adresse] => afsd
                    [npalocalite] => asdf
                    [email] => asdf@asdf.com
                    [telephone] => 1321313131313
                    [votre_message] => 23.44
                )

            [_success] => Data saved successfully
            [log] => Array
                (
                    [0] => INSERT INTO `formulaire_de_contact` (`date_time`, `ip_adress`, `genre_de_travaux_concernes`, `titre`, `societe`, `nom`, `prenom`, `adresse`, `npalocalite`, `email`, `telephone`, `votre_message`)  values  ('2018-12-16 22:44:06', '193.240.0.0, 'Aéro & Micro-gommage', 'Société', '', 'asdf', 'fasdf', 'afsd', 'asdf', 'asdf@asdf.com', '1321313131313', '23.44');
                )

            [var] => Array
                (
                    [date_time] => 2018-12-16 22:44:06
                    [ip_adress] => 193.240.0.0
                    [genre_de_travaux_concernes] => Aéro & Micro-gommage
                    [titre] => Société
                    [societe] => 
                    [nom] => asdf
                    [prenom] => fasdf
                    [adresse] => afsd
                    [npalocalite] => asdf
                    [email] => asdf@asdf.com
                    [telephone] => 1321313131313
                    [votre_message] => 23.44
                    [id] => 41
                )

        )

    [email8] => Array
        (
            [recipients] => Array
                (
                    [0] => test@test.com
                )

            [subject] => Message depuis DECAP-PRO.ch
            [body] => 
<table width="100%" cellpadding="5" cellspacing="3" border="0" class="ui table"><tr><td width="30%" valign="top" align="right"><strong>Genre de travaux concernés</strong></td><td width="70%" valign="top" align="left">Aéro & Micro-gommage</td></tr><tr><td width="30%" valign="top" align="right"><strong>Titre</strong></td><td width="70%" valign="top" align="left">Société</td></tr><tr><td width="30%" valign="top" align="right"><strong>Société</strong></td><td width="70%" valign="top" align="left"></td></tr><tr><td width="30%" valign="top" align="right"><strong>Nom</strong></td><td width="70%" valign="top" align="left">asdf</td></tr><tr><td width="30%" valign="top" align="right"><strong>Prénom</strong></td><td width="70%" valign="top" align="left">fasdf</td></tr><tr><td width="30%" valign="top" align="right"><strong>Adresse</strong></td><td width="70%" valign="top" align="left">afsd</td></tr><tr><td width="30%" valign="top" align="right"><strong>NPA / Localité</strong></td><td width="70%" valign="top" align="left">asdf</td></tr><tr><td width="30%" valign="top" align="right"><strong>Email</strong></td><td width="70%" valign="top" align="left">asdf@asdf.com</td></tr><tr><td width="30%" valign="top" align="right"><strong>Téléphone</strong></td><td width="70%" valign="top" align="left">1321313131313</td></tr><tr><td width="30%" valign="top" align="right"><strong>Votre message</strong></td><td width="70%" valign="top" align="left">23.44</td></tr><tr><td width="30%" valign="top" align="right"><strong>ip_adress</strong></td><td width="70%" valign="top" align="left">193.240.0.0</td></tr></table>
            [result] => the Mail sent successfully.
            [var] => 1
        )

)

thanks.
healyhatman 17 Dec, 2018
If you use a Redirect, all your form data disappears.
bjems 17 Dec, 2018
With or without a redirect, the problem is the same. I have puted a redired just to know if the form work.
If the user are redirected i recieve the email, if not redirected the form data disappears and no email are send.thanks.
healyhatman 17 Dec, 2018
Well then we might have differing ideas of what a redirect is.

Should probably post a screenshot of your event setup.
bjems 18 Dec, 2018
hello,

Nothing special in the Event.


Thanks
healyhatman 18 Dec, 2018
Well there you go you're redirecting to a html document, so it's probably not running all the PHP code it needs to do things like display messages.

But post a form backup anyway I'll have a look sounds odd
bjems 18 Dec, 2018
For me the problem is not redirecting but i must press send the mail 2 times to recieve the mail and after the first Send it erase all fields and after the the customer must fillit one more time and press Send to recieve the mail.

Thanks[file=11289]Formulaire_de_contact_18_Dec_2018_23_17_47.cf6bak[/file]
healyhatman 18 Dec, 2018
Email #2 absolutely won't work, you can't send an email from someone else's domain.

The save data won't work, unless of course you actually have a source for var:tableviewname.row.model.field

Also, and this is the big one, YOU'VE GOT THE WRONG ACTION URL so you're submitting your form to a html document! Get rid of the action url in your display section action.
bjems 18 Dec, 2018
- the Email #2 is not enabled
- the save data is working for me without problem. If i recieve the mail the data is saved too.
- the action url i puted it before 20 minutes for test (http://www.chronoengine.com/forums/posts/t106368/chronoforms-doesnt-send-mails). Before to write this in action it was blank.

Thanks
healyhatman 18 Dec, 2018
The problem must be on your end then because it's working for me. Take out the redirect, clear the Action URL, and enable the debugger and I'll try submitting from your site again.
healyhatman 18 Dec, 2018
Also it seems like it's trying to submit on load. What do your menu entry and your CF module look like?
bjems 18 Dec, 2018
Thanks for your help
bjems 18 Dec, 2018
For information i tested it on 4 different browser on my computer, on the computer at my work too and with my smartphone too. The same problem. At the first visit in the contact page the same problem. If i revisited the contact page and not cleared the cache the problem disappears.
bjems 18 Dec, 2018
the menu entry
bjems 18 Dec, 2018
and for the modul i use a modul and insert the form like this {chronoforms6}formulaire-de-contact{/chronoforms6}
healyhatman 18 Dec, 2018
If you can, disable cache for that page. I assume it works correctly when you use Preview in the backend (of course after you remove the redirect) ?
bjems 18 Dec, 2018
On Preview in the backend it's works with and without redirect.

Thanks
This topic is locked and no more replies can be posted.