mail received for subscriptions-digest without EOL

sinedv - June 30, 2008 - 15:52
Project:Subscriptions
Version:5.x-2.2
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hello,

after modification of the "subscriptions-digest" template with Mail editor (5.x-1.1), email received have no more end of line ...

| Dear vd. | | Your subscriptions on Portal | notify you of the following changes since the previous digest: | | Title: [...]

my template:

| Dear !name.
|
| Your subscriptions on !site
| notify you of the following changes since the previous digest:
|
!bodies
| --------------------------------------------------------------------
| This is an automated message. Please do NOT reply to the sender address!
| To manage your subscriptions go to !manage_url

any idea of what's wrong?

thanks in advance for your help

#1

salvis - June 30, 2008 - 22:17

No, never seen this.

Did you cut & paste or something? Try to enter some text at the top of the entry field, with a couple of newlines, just as you enter text here on drupal.org...

#2

sinedv - July 1, 2008 - 15:19

seems to be solved by selecting "Use mime mail for all messages" in the mime mail module admin ...
but the issue only after editing template with mail editor

#3

salvis - July 1, 2008 - 21:46

I'm glad there is a work-around, but no one has reported this before, so I don't think it's a bug in Subscriptions or Mail Editor.

Here's an idea though: some email clients will wrap lines if they have a space before the newline. Did you maybe type spaces at the ends of your lines?

#4

sinedv - July 3, 2008 - 09:46

Unfortunatly, my problem is not solved ...

Using mime for all messages is not a good idea for all people reading mainly theire mail as text only ...

I found another interactivity with the module Personalized E-mails http://drupal.org/project/pmail
After uninstalling pmail module it seems to be better.

It take the opportunity to try to better understand email process in Drupal (may be it's not the right place)

- my Drupal 5.7 site is an intranet
I use
- SMTP 5.x-1.0 module to be able to use our SMTP gateway
- HTML Mail 5.x-1.0 to be able to send more frendly content by mail
- Mime Mail 5.x-1.0 ... to be able to send properly HTML mail, attachements ...
- Mail Editor 5.x-1.1 as required by the Subscriptions module to edit mail template
- HTML to Text 5.x-1.1 as suggested by Subscriptions but not activate in all my tests because it seems that my format issue is not link to this module
- Forward 5.x-1.13 to be able to send one page by mail (works fine)

I'd like to know who's doing what?

Subscriptions collect content for a profile, use Mail editor template
I don't know if HTML mail is used in this case
HTML to Text (if used) transform mail content ... to text
Mime Mail format the mail
SMTP send it to the gateway

Is it the right order?
Is there other "filter" for the mail content?

more globaly, is there any howto, docs or thread I did not find on the mail subject?

thanks in advance for your help on this subject which I spend a lot of time to try to have readable mail

#5

salvis - July 4, 2008 - 18:35

Subscriptions uses HTML to Text to convert node bodies with HTML into pure text form. This is completely unrelated to mail.

And it uses Mail Editor for editing the templates and for filling in the variables in the templates.

This is the standard configuration that is known to work fine. All the other modules are beyond the scope of Subscriptions.

Your customized templates are stored in the mail_edit and subscriptions_mail_edit tables. You can delete them in the database to get back the default templates. I don't understand why your edited templates should behave differently from the default ones. The only think I can think of is some kind of problem with line endings. Try to dump the mail_edit strings (in hex) and see what you get. Then try to experiment with different line endings (surgery in the database).

#6

salvis - July 24, 2008 - 17:50
Status:active» closed

Feel free to reopen if we need to pursue this further...

 
 

Drupal is a registered trademark of Dries Buytaert.