For a certain feature in my site, I need to send the entire body of a blog posting. To do this, I'm using Workflow-ng and the wonderful Mime Mail. The rule runs fine and the email is sent out, but only partially in HTML.

The portion of the email that I write myself is being sent as HTML, for example with an active link to email addresses. But when the Workflow module adds the blog body content, it goes in as plain text. So the email ends up looking like this:

Hello!

*****, a user of the ********** site, has posted a new Blog entry and thought you would like a copy. You can reply to this user using the email address ******************.

Enjoy!

||This email has been automatically generated by the ******* site. If you
||would prefer to not receive these emails in the future, you can request so by
||emailing ******** at **************.

-------------BEGIN BLOG CONTENT----------------

<p>And the body.</p>
<p>has all of the tags visible.</p>
<p>And it's not very pretty.</p>

For the record, the body is being inserted using the straight $node->body variable. I'm not fully familiar with this stuff (obviously). Is there something I can do to get the body variable to be formatted using the tags that are already present in the content? Something I can wrap it in, or even add to the body variable before inserting it into the body of the email?

Thanks in advance.

Comments

dwils03’s picture

Status: Active » Fixed

Nevermind. I (finally) found the fix. I had the $node->body variable wrapped in a check_plain(). Removing this fixed the problem.

Thanks for the help :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

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