Hi,

I have some problems with mimemail, the module automatically add
to my HTML (it seems to add that
when a line have too much characters.

But the
are put anywhere and this results as lines like that :

<div id="content"><table width="95%" border="0" cellspacing="0" cellpadding="1" align="center"<br />
bgcolor="#006699" style="font-family: verdana, arial, helvetica; font-size:<br />
small;"><br />

You can imagine the weird display I obtain to my mail with
put in the middle of style declaration....

I tried to find where the module can put these random
but I didn't find... Can somebody point me the right direction ?

Comments

zmove’s picture

ATM, the dirty solution I found is to add

  $body = str_replace('<br />',' ', $body);

on the begining of theme_mimemail_message() function. (You can avoid to hack the module core by redeclaring the theme function in your template.php).

It remove the
that break the HTML, but it remove All the
, so the ones you put in your content too....

If somebody have a better solution...

lisawoodsca’s picture

Yep, I'm getting the same problem! Really strange. Driving me nuts... I'm using the latest dev snapshot of Mimemail with Simplenews and I'm trying to send out html newsletters.

These line breaks are stuck in for my images and anchor/mailto links if they get too long. Added in that little hack so that will have to do for now. i still have issues with a lot of links in a row - the end tags get removed and placed near the end of the paragraph!

I've tried sending the mails with/without FCKEditor, but it doesn't make a difference...

Hope someone can fix this problem...

zmove’s picture

Status: Active » Fixed

Hmmm I created an input format with no html correction, no line break, nothing checked... and associated mimemail to this input format and now it works.

Status: Fixed » Closed (fixed)

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

walker2238’s picture

Status: Closed (fixed) » Active

Sorry but this isn't fixed.

walker2238’s picture

So far from what I read it seems to be cause by drupal_wrap_mail()? Hopefully someone with more knowledge can better explain things to me. But for now I assume this is a core issue?

Anyways marking as duplicate of http://drupal.org/node/321026

walker2238’s picture

Status: Active » Closed (duplicate)