Closed (fixed)
Project:
Survey
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Oct 2007 at 14:04 UTC
Updated:
22 Mar 2008 at 06:30 UTC
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
Comment #1
ymmatt commentedI 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
Comment #2
ceejayoz commentedThanks, peligrorice. That worked for me. I'd been running it all through strip_tags(), but yours is much nicer.
Comment #3
quicksketchSurvey module is no longer being maintained, use Webform module instead.
---Closing down issue queue of survey module---