It looks like this for me, out of the box: http://share.aidanlister.com/MJHC

I've hunted around, and I think I see the problem. I'm not sure what "text_format" is, I cannot find it defined anywhere in the variable module. I see that the mail_text type uses "text" for the field, which looks correct if you want the previews displayed in HTML. If you want the previews displayed escaped, then use "string".

index 9a9dd2a..3eeac05 100644
--- a/sites/all/modules/contrib/variable_email/variable_email.variable.inc
+++ b/sites/all/modules/contrib/variable_email/variable_email.variable.inc
@@ -25,7 +25,7 @@ function variable_email_build_mail_html($variable, $options = array()) {
   $name = str_replace('[mail_part]', '', $variable['name']);
   // For mail text, children have different types
   $variable['children'][$name . 'subject']['type'] = 'string';
-  $variable['children'][$name . 'body']['type'] = 'text_format';
+  $variable['children'][$name . 'body']['type'] = 'text';
   $variable = variable_build_multiple($variable, $options);
   return $variable;
 }

Comments

imiksu’s picture

Would it be possible that someone has edited the mail body with text format which you don't have access into. In that case it works as designed.

However, other email templates are tending to use just text format as you mentioned, so it wouldn't be bad idea to stay consistent.

roam2345’s picture