Because of the the security fix, I installed the latest version of webform and everything was fine until I realized that the content of the email sent is empty. Apparently, the following line doesn't give any result:
print theme('webform_mail_fields', 0, $form_values['submitted_tree'], $node);
However, the values are present in the database and are accessible through the webform results interface.
Since all my websites use this latest version, I really need a quick fix or workaround .
Here the content of an email, as example:
Submitted on 2011-05-23 13:56
Submitted by user: admin [80.83.46.2]
Submitted values are:
The results of this submission may be viewed at:
http://www.inox.com/dev/smileline/node/18/submission/
Thanks in advance for your quick help!
Comments
Comment #1
GiedoDS commentedI have the same problem since installing 6.x-3.11. I get data in the e-mail but only a part of the fields.
I have 3 field groups with in each a few fields. Only the first fieldgroup with its fields come through in the e-mail.
There is already one client who's complaining the subscriptions for an upcoming event don't contain all then info he needs/expects.
Comment #2
dmatthey commentedFixed the problem by cheking the files in the new templates directory. Email can be displayed through this line:
%email_values
Single fields can be output by using %email[key].
Still a little bug, how can I output a field value without its label?
Comment #3
else commentedI have the same problem since installing 6.x-3.11: no data in emails!
Comment #4
quicksketchWhen upgrading from 2.x to 3.x, you have to re-theme all your e-mails as the templating code has changed. See the Webform upgrade notes that are linked from the project page.
Comment #5
GiedoDS commentedWhy should I re-theme all my e-mails as I never themed them in 2.x? I used the default.
Comment #6
GiedoDS commentedReading the Theming.txt in the templates folder I have put "
print_r($submission)" in it.The resulting e-mail after submitting the form confirms what I already knew: only a fraction of the submitted fields comes through, two third not. It seems that there is somethng wrong with "%email_values". In 2.x one had the option per field to configure whether or not the field must go in the e-mail. I don't see that anymore in 3.x.
Comment #7
quicksketchAh, well no changes should be necessary then. If you didn't do any theming in 2.x then the upgrade path *should* handle everything for you.
The option to include or not include a component has been moved from the component form to the e-mail form (since you may want to include or exclude components based on who you are sending the e-mail to). Check the "Included components" fieldset below the e-mail template while editing an e-mail configuration under node/x/webform/emails.
Comment #8
else commentedIt works for me fine right now: data comes in emails.
Set for every email:
under node/x/webform/emails select edit
go to email template,
choose custom template
put in textfield: %email_values
and save.
Comment #9
GiedoDS commentedI have followed the instructions of 'else' and now it works for me too.
So there was no problem ;-)
My apologies!
Comment #11
mlfilms commentedYou can alsio use %value[key] to only have the submitted info displayed without the field title.
I was able to get a table to display properly after some trial and error.
Anyone know how to get the hard carriage returns to display?
Comment #12
dmatthey commentedGreat, that's exactly what I need, using %value everything is fine.
Thanks a lot mlfilms!
Comment #13
seahostler commentedAlso, if you create a template, and choose 'Default' then save. Then go back into that email template, change it to 'Custom' then save, it never saves. So, the Custom template worked for me, but not until i deleted my current email form template in the admin and created a new one. Thanks so much for the help on this one. :) Dangerous bug to be had in this update!!!!!