I'm using the token_actions_send_email_action
The mail-body that I configured (only text) has no newlines, when it's send.
This is due to the use of drupal_html_to_text in function token_actions_send_email_action.
Does anybody really configures a mail with html, which is then afterwards converted to text?
I expected the mail to look like the text I'm writing in the action-configuration.

I simply removed the call to drupal_html_to_text and the mail looked the same as in the action-configuration-form (including newlines).

Thanks for this great module
Stefan

Comments

jbeall’s picture

Same issue, but when I looked into this, the problem was not in token_actions_send_email_action (in fact, that function never gets called in my setup), but in modules/system/system.module, line 1741, which is:

$message['body'][] = drupal_html_to_text($body);

Problem is, I can't change that line without changing the way it processes all emails. I just want it to not strip newlines out of the action emails (which are entered as plain text).

I'm using the Acquia package of Drupal, v6.10. As of Drupal v6 the Actions module is in core, so I'm using whatever version of the actions module ships with Drupal v6.10.

My workaround for the time being is to put

tags around all my paragraphs. When the email goes out, it puts two linebreaks between the paragraphs.

Cheesy, but it works.

-Josh

greggles’s picture

Status: Active » Closed (duplicate)

I think this was fixed in #317303: Token Actions & Mimemail. Can you try updating to a more recent version?

jbeall’s picture

Hmm, well, two comments:

I've got v6.x-1.11 of the Token module installed, and that bug you linked to has a version of 6.x-1.11 (I assume that means the fix version?), and the most recent version of the Token module is 6.x-1.11--so it looks like I'm all up to date there.

Regardless, however, I do not think my issue is due to a bug in the token module or mimemail module. I don't have the token module enabled, and I don't even have the mimemail module installed.

-Josh