Hi,

I'm using the survey module for our forms and when they submit a form, the resulting e-mail that is sent has <em> tags placed in the subject line and at the bottom of the e-mail where it says who submitted the form and when.

Example:
Submitted by <em>admin (http://www.mydrupalsite.com/users/admin)</em> on <em>Tue, 10/23/2007 - 09:37</em>

Is there a patch for this or will it be fixed in an update to this module? Many of our users do not have HTML enabled on their e-mail clients so sending just plain text e-mails would be best.

Rob

Comments

ymmatt’s picture

I found what was causing the issue, not sure if it is a bug, or a feature request now.

The issue is that the module provider has decided that you will want to have HTML formatted emails. In using the % style of placeholder it which indicates that the string should be HTML escaped and highlighted with theme_placeholder() which shows up by default as <em>emphasized</em>.

I have changed the placeholder on my site to be ! (replaced every instance of % on lines 332 and 338 in the survey.module file) which renders the text as-is.

The Drupal API documentation for the t() function which is used on these lines is here

ceejayoz’s picture

Thanks, peligrorice. That worked for me. I'd been running it all through strip_tags(), but yours is much nicer.

quicksketch’s picture

Status: Active » Closed (fixed)

Survey module is no longer being maintained, use Webform module instead.

---Closing down issue queue of survey module---