sorry if this is the wrong place for this. i'm not sure what module is responsible.

i'm using notifications to send mail when a node is created or edited. it uses drupal mail with the "Messaging plain text" filter. no matter how i configure the filter, the paragraph markers show up in the mail. TinyMCE is enabled so i know the html is created by that but i assume there should be a way to filter it out.

i don't have mbstring installed. could that be related?

Comments

ron collins’s picture

this is also a problem with FCK

matason’s picture

I'm experiencing this too, steps to reproduce:

Install Drupal 6.12
Install notifications 6.x-2.1
Install og 6.x-1.3
Install token 6.x-1.12
Install messaging 6.x-2.1

Enable the modules, I selected messaging, simple mail, content notifications, notificaitons, notifications autosubscribe, notifications lite, notifications ui, organic groups, organic groups notifications and token.

I created a group node, joined the group, set my default send interval and group send interval to immediate and sent an email via /node/1/broadcast

I tried setting the message body filter to messaging plain text which resulted in the email arriving with no formatting at all, just one long string.

I tried setting the message body filter to full/filtered HTML which resulted in the email arrinving with HTML displayed in the message.

I'm not sure whether this is in fact a notifications issue at all, could be messaging?

profjk’s picture

subscribing

matason’s picture

FWIW I have Apache compiled with mb_string enabled.

matason’s picture

Project: Notifications » Messaging
Version: 6.x-2.0 » 6.x-2.1
Component: Code » Miscellaneous
Status: Active » Fixed

This is not a bug... it's a messaging installation issue... see http://drupal.org/node/252619 - Mail and messaging modules (Installation and configuration) points out, "So you need to create some Input filters before setting up Messaging"

So to fix this "issue", I created a new input filter adding the HTML to Text filter which uses the drupal_html_to_text function:

"Transform an HTML string into plain text, preserving the structure of the markup. Useful for preparing the body of a node to be sent by e-mail."

I should have read the fine manual...

ron collins’s picture

thanks. that did it. specifically:

if you use the 'Line break converter' (which wraps paragraphs with html tags) this one must be before any 'Plain text' converter.

Status: Fixed » Closed (fixed)

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