Hi there! I'm so sorry to post (I know you get a lot of requests) but after much Googling I can't find an answer. I'm using subscriptions and mail edit on a small site and everything's working quite nicely except...

I'm using !body instead of !teaser in the template because my clients preferred to have the full text of the node sent via email. The body content is showing up in the emails with very strange line breaks. ( Same weird breaks in gmail client, outlook, etc.) They're not where the user has spaced between a line. Instead they are appearing in (what seems to me) totally random spots like in between words in a sentence that's all spaced properly. Bizarre! Here's an example:

Description: Raw TV, the award-winning production company behind the
Discovery hit show
Gold Rush, is looking for Researchers/AP’s or experienced Casting PA's to
cast an exciting new project for Discovery.Please ONLY apply if you have
experience and success in tracking down
authentic and engaging characters for documentaries or reality shows. You

I was using the full html input format for the body. Just tried changing it to filtered HTML but haven't been able to see a difference yet. Any ideas about what might be happening and how I can fix it? Thanks so much!

CommentFileSizeAuthor
#5 mail_template_screenshot.jpg122.44 KBamandawolfe

Comments

amandawolfe’s picture

To be clear, here's what the regular text on the site looks like (this is obviously just a small excerpt):

Raw TV, the award-winning production company behind the Discovery hit show Gold Rush, is looking for Researchers/AP’s or experienced Casting PA's to cast an exciting new project for Discovery.

Please ONLY apply if you have experience and success in tracking down authentic and engaging characters for documentaries or reality shows. You ...

salvis’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev

Drupal wraps lines to a little less than 80 characters. It seems that these lines are now wrapped a second time, to 60 characters, giving line lengths of 60 and 20 characters. Where you have line breaks in the original, the lines are apparently merged.

If you see the same effect in different email clients, especially in web clients, this must be done by your sending mail server. How do you send out the notifications? Any mail modules installed?

Try to send yourself mail using the contact form. I'm pretty sure you'll see the same effect.

BTW, you must be using Drupal 6, if you have !body...

amandawolfe’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Thanks for your quick response! Maybe the first issue here is that I am actually using Drupal 7. Is !body deprecated? It's printing the body of the node for me (albeit oddly-spaced, clearly). I changed that in the Mail Editor template instead of !teaser since my clients wanted the full body text. I have Token installed but there aren't any node tokens available in the replacement patterns area when I edit the template in Mail Editor, just a few standard user/time/site/etc. ones.

I'm not using any other mail module, just Subscriptions and Mail Editor to send out text-based emails. (We don't need HTML email so I didn't mess with adding another module.) So they're just being sent via core functionality (I think!). I'm not seeing the same spacing issues with emails sent via the site contact form. I see that it's been wrapped to the 80ish chars, but not double-wrapped like the subscriptions emails. So strange!

salvis’s picture

You're using !body with Drupal 7? That's completely nuts! For all I know this cannot possibly work.

The D7 installation tries to update the D6 !variables into D7 [tokens]. That's the one and only place in the D7 code where '!body' occurs — in the current -dev version, that is. Maybe you have a very early one?

Something is very, very weird with your set-up, and I don't really know what to tell you. Assuming that you're not trying to use digest mode yet, I'd recommend that you install ALPHA6, so that we have a defined state, but you seem to be running completely outside of the specs, and i have no idea what the outcome of updating might be...

I have Token installed but there aren't any node tokens available in the replacement patterns area when I edit the template in Mail Editor, just a few standard user/time/site/etc. ones.

What is the path (URL without site name) of that template? Please post a screenshot of what you see on that page. What do you see on
admin/config/system/mail-edit/subscriptions_mail_node-type-article/en
? No node tokens?

amandawolfe’s picture

StatusFileSize
new122.44 KB

Oh dear! I was using an older version of dev and when I opened up the mail editor templates, everything still has !s in it. This is my first D7 site so I didn't even realize anything was amiss. YIKES. I'm going to install Alpha6 and update Mail Editor this weekend and see if that resolves anything.

Attached is what I see at admin/config/system/mail-edit/subscriptions_content_node-type-page/en.

salvis’s picture

Indeed, you're using a very early and very experimental -dev version!

Let us know how it goes...

amandawolfe’s picture

Status: Active » Closed (works as designed)

I installed Alpha 6, updated Mail Editor and Token and it's all working beautifully. I went ahead and actually installed HTML mail to add a little bit more formatting to the messages (and as a workaround to the wordwrap problem if that was still happening). So (for now at least) it's all looking good. Probably serves me right for not updating my modules—I know better! Thanks again for your help.

salvis’s picture

Great, thanks for letting us know!

salvis’s picture

Issue summary: View changes

ETA additional info