Example subject:
[<em>Subject (email)</em> - <em>E-mail</em>] <em>terst</em>

Example first part of the mail body:
<em>admin</em> sent a message using the contact form at
<em>http://www.domein.test/drupal5/email/13/field_email</em>

This can be repaired by replacing the % symbols by @ symbols. This prevents theming the replaced parts with the default emphasized tag.

Line 353 becomes:

  $message[] = t("@name sent a message using the contact form at @form.", array('@name' => $edit['name'], '@form' => url($_GET['q'], NULL, NULL, TRUE)));

Line 362 becomes:

  $subject = t('[@title - @contact] @subject', array('@title' => preg_replace("/\r|\n/",'',$node->title), '@contact' => $types['fields'][$fieldname]['widget']['label'], '@subject' => $edit['subject']));
CommentFileSizeAuthor
#6 email.159467.patch1.41 KBsutharsan

Comments

ray007’s picture

Been wondering about the same - subscribing.

Rob_Feature’s picture

Status: Needs review » Reviewed & tested by the community

I've used this numerous times and it works just fine. Please commit it so I don't have to keep coming back here to remember the answer :)

lias’s picture

thanks very much for this, I was wondering how to fix it.

Rob_Feature’s picture

There's some more % symbols in line 372. Should those be replaced as well?

jurriaanroelofs’s picture

would be nice if this could be commited to the module

sutharsan’s picture

StatusFileSize
new1.41 KB

Patch with 4p's changes attached. Please commit.

@bobchristenson: these %'s are not contained in the email and will not cause any problems. In fact they are good as they are.

KingMoore’s picture

I have tested this patch and it works. Please commit.

mh86’s picture

Status: Reviewed & tested by the community » Fixed

thanks for the patch, it has been committed :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.