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

GiedoDS’s picture

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

dmatthey’s picture

Fixed 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?

else’s picture

I have the same problem since installing 6.x-3.11: no data in emails!

quicksketch’s picture

Title: No more data sent in email » No more data sent in email (E-mails need retheming when upgrading from 2.x)
Category: bug » support
Priority: Critical » Normal

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

GiedoDS’s picture

Category: support » bug
Priority: Normal » Critical

Why should I re-theme all my e-mails as I never themed them in 2.x? I used the default.

GiedoDS’s picture

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

quicksketch’s picture

Why should I re-theme all my e-mails as I never themed them in 2.x? I used the default.

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

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.

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.

else’s picture

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

GiedoDS’s picture

I have followed the instructions of 'else' and now it works for me too.
So there was no problem ;-)
My apologies!

mlfilms’s picture

Posted by dmatthey on May 23, 2011 at 9:24am new
Fixed 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].

You 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?

dmatthey’s picture

Status: Active » Closed (fixed)

Great, that's exactly what I need, using %value everything is fine.

Thanks a lot mlfilms!

seahostler’s picture

Also, 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!!!!!