Forums

The send email is blank

moi34 04 Aug, 2014
Hello,

My form is working but when I want to received the data by email I get blank email

In the setup for the email I have :
Enabled : YES
To : contact@mydomainename.com
Subject : test
From name : admin
From email : contact@mydomainename.com
email format HTML
Template generation auto
Email Template :

<table>
<tr><td>Votre pseudo</td><td>{pseudo}</td></tr>
<tr><td>Votre sexe</td><td>{sexe}</td></tr>
<tr><td>Votre âge</td><td>{age}</td></tr>
<tr><td>Votre témoignage</td><td>{temoignage}</td></tr>
</table>

but I get blank email

what did I setup wrong ?
Thanks in advance for your help
GreyHead 04 Aug, 2014
Hi moi34,

Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.

Note: if you are using the Easy Wizard you can turn on Debug on the Others tab in CFv4 or the Setup tab in CFv5.

Bob
moi34 04 Aug, 2014
Hello GreyHead,

Here what I get with the debugger
Data Array
Array
(
    [chronoform] => temoignages
    [event] => submit
    [pseudo] => moi34
    [sexe] => Array
        (
            [0] => Homme
        )
    [age] => 35
    [temoignage] => here my message
    [recaptcha_challenge_field] => 03AHJ_VuuAx14TiCyPSJF80m0ST77Vdtf-pvTqwV34x3IPD7Pes5_XuYRCnhyPUOkNBlE9AXH4dzZgK3XzrxsrlfqYNbGHWfOU99llWrS5TSCzSaeXlLYmaLsq23oFBDVEJF8rcPi5dGcXQSz7r7QNZPA4YMsTKVZGKfbU5JbW4C47K98EyiaPgY7lyZJIVR51kerJZ2sBAog_
    [recaptcha_response_field] => utlarge carrying
    [button5] => Envoyer
    [Itemid] => 889
    [temoignages] => 
    [ip_address] => 127.0.0.1
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
    [3] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:contact@conseil.com
                    [2] => Subject:Votre témoignage
                    [3] => From name:Temoignage
                    [4] => From email:contact@conseil.com
                    [5] => CC:
                    [6] => BCC:
                    [7] => Reply name:
                    [8] => Reply email:
                    [9] => Attachments:
                    [10] => Body:
<table>
<tr><td>Votre pseudo</td><td>moi34</td></tr>
<tr><td>Votre sexe</td><td>array (
  0 => 'Homme',
)</td></tr>
<tr><td>Votre âge</td><td>35</td></tr>
<tr><td>Votre témoignage</td><td>here my message</td></tr>
<tr><td>Recopier le Code </td><td></td></tr>
</table>
IP: 127.0.0.1
                )
        )
)

Not sure to understand "dummy email" can you explain what you need.
Thanks for your help
Max_admin 04 Aug, 2014
Hi,

The IP is "127.0.0.1", are you testing this on your local machine ? maybe this has a problem somewhere, because the debug looks ok, please try on a live website and let us know!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 04 Aug, 2014
Also the "sexe" field is multi choice, it should not, try to use a "Radio box" instead!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 05 Aug, 2014
Hi moi34,

The 'dummy email ' is this bit of the debugger output. You can see there that the submitted data has been included.
<table>
<tr><td>Votre pseudo</td><td>moi34</td></tr>
<tr><td>Votre sexe</td><td>array (
  0 => 'Homme',
)</td></tr>
<tr><td>Votre âge</td><td>35</td></tr>
<tr><td>Votre témoignage</td><td>here my message</td></tr>
<tr><td>Recopier le Code </td><td></td></tr>
</table>,

I would expect the email you receive to be identical to this.

As Max said, you need to fix the 'sexe' input.

Bob
moi34 05 Aug, 2014
Hello Bob, Hello Max,

I've tried my forms on live website and now I don't have any blank email anymore.
However I don't get your advice about radio box for the "sexe" field
it is actually a radio box but maybe I set it up badly
Field Name : sexe[]

Field ID : radio2

Options : Femme=Femme
	        Homme=Homme


Thanks
GreyHead 05 Aug, 2014
Hi moi34,

Please remove the [] from the input name, that is only needed for inputs that allow multiple selections like checkbox groups and multi-select drop-downs.

Bob
moi34 05 Aug, 2014
Thanks Bob, everything is working perfectly now.
This topic is locked and no more replies can be posted.