Search form

Mailing list formatting removed; link to original post?

16 posts / 0 new
Last post
Larry Clapp
Larry Clapp's picture
Offline
Joined: 01/14/2011 - 06:15
Mailing list formatting removed; link to original post?

We have a Groupanizer-based mailing list that goes to all Leads.  When you post to the list, all line breaks are removed in the email that's sent out.  Example input:

Gentlemen,

Blah, blah, blah.

List:

a

b

c

Signed,

   Blah

Received in email:

Gentlemen, Blah, blah, blah. List: a b c Signed, Blah.

Ick.

Could you either fix the formatting in the email that's sent out, or include a link to the original post (like you do for comments on the original message), or better yet both?

Larry Clapp
Larry Clapp's picture
Offline
Joined: 01/14/2011 - 06:15
More data on this bug

If I "view source" on the email, it's the usual MIME with text/plain first, with the email as entered, with line breaks added and blank lines preserved.

After that is the text/html with no line breaks added and with the blank lines also preserved.  Unfortunately blank lines don't mean anything in HTML and you really need to add some < br > tags (or something, I am not an HTML guy).

Hope this helps.

Edit: Note that if you comment an on entry, the notification with the comment is sent out correctly formatted!  So Drupal can do this, somehow!  :)

Larry Clapp, President, Tampa Heralds of Harmony, BHS

admin
admin's picture
Offline
Joined: 04/22/2012 - 08:04
Strange - most people don't

Strange - most people don't have this problem!  Would it be possible to send a similar email to test@test.groupanizer.com so I can debug it?

Larry Clapp
Larry Clapp's picture
Offline
Joined: 01/14/2011 - 06:15
Email sent.

Email sent.

Larry Clapp, President, Tampa Heralds of Harmony, BHS

Larry Clapp
Larry Clapp's picture
Offline
Joined: 01/14/2011 - 06:15
Tom -- Did you get my email,

Tom -- Did you get my email, and was it helpful?

Larry Clapp, President, Tampa Heralds of Harmony, BHS

admin
admin's picture
Offline
Joined: 04/22/2012 - 08:04
Sorry for the delay there

Sorry for the delay there Larry.  I see that the formatting was lost.  The email came across as below.  As you can see, it's got all the text in a text/html block, but there are no line break tags.  In fact this was the same as the text/plain block just above it.

What email client did you use to send the original?

And I think you just forwarded it to test@test.groupanizer.com right?  Rather than sending the same note again?

T

--b1_d698e64fb4457414adfd15ac7be7bbd5
Content-Type: text/html; charset = "iso-8859-1"
Content-Transfer-Encoding: 8bit

All,

I have organized the adjudicators and other lead section members into groups. If you're name falls below someone with a '+' next to their name then they are your lead section qualifier. All recordings will go to them. I pulled this list from Groupanizer so if there is someone missing, please let me know. If you have any other questions about how qualification works or anything related to qualifying please contact me or your respective qualifier.

Thanks,
Andrew

+ Kent Jenkins
   - Andrew Wheeler
   - Larry Clapp
   - Randy Lawson
   - Steve Matheson

+ Larry Clapp
   - Gregg Hunsberger
   - John Pennington
   - Keith Starks
   - Marvin Evans

+ Marvin Evans
   - Kent Jenkins
   - Matt Sullivan
   - Jeff Freeman
   - Ron Sadofsky
   - Chris Rodgers<hr><h6>You are subscribed to the Lead Section mailing list through:<br>Sections:Lead <br></h6>

--b1_d698e64fb4457414adfd15ac7be7bbd5--

Larry Clapp
Larry Clapp's picture
Offline
Joined: 01/14/2011 - 06:15
> What email client did you

> What email client did you use to send the original?

That's the problem, I didn't send an initial email.  Our section lead entered it on our Groupanizer website using the web-based mailing list; Groupanizer sent out the email.  See http://heraldsofharmony.groupanizer.com/node/2861 .

> And I think you just forwarded it to test@test.groupanizer.com right?  Rather than sending the same note again?

I'm not sure what you mean by that question, sorry.

Larry Clapp, President, Tampa Heralds of Harmony, BHS

admin
admin's picture
Offline
Joined: 04/22/2012 - 08:04
OK thinking this through.  If

OK thinking this through.  If people use CKEditor to compose the mail, it will be HTML and all will be well.  If CKEditor is turned off for some reason, it will be plain text and that will cause all the linebreaks to disappear.

So when you create a mailinglist email, is there an editor?

Tom

John Breckenridge
John Breckenridge's picture
Offline
Joined: 02/07/2010 - 09:41
Not that I'm aware of. How

Not that I'm aware of. How could I tell?

John B

John Breckenridge, Bass  First Capital Chorus, Soundscape, 

Larry Clapp
Larry Clapp's picture
Offline
Joined: 01/14/2011 - 06:15
There is no editor, no.  I

There is no editor, no.  I went to permissions and tried to enable the ckeditor and it didn't come up.  I may've done it wrong, or not done enough, I dunno, but in any case, there's no editor.

Larry Clapp, President, Tampa Heralds of Harmony, BHS

John Breckenridge
John Breckenridge's picture
Offline
Joined: 02/07/2010 - 09:41
Tom; I'm getting the same

Tom; I'm getting the same result as Larry when I paste items into the details box in Gevents and in Repertoire. These can be from PDFs or DOC files, they all come out unformatted.  I have dummied one up for you to see but can't find the button to attach it here.

I'll send this and see if I can find the attachment button on a reply page.

John Breckenridge, Bass  First Capital Chorus, Soundscape, 

admin
admin's picture
Offline
Joined: 04/22/2012 - 08:04
Hey guys - you can tell

Hey guys - you can tell there's an editor when the buttons appear over the text box.  If there are no buttons, it's just a plain text entry box and formatting will be stripped.

Right now the system *should* be configured to have the CKEditor only on node body forms.  If yours doesn't appear to be that way, here's what to do:

  • Make sure the CKEditor module is installed
  • Go to Admin > Site configuration> CKEditor
  • Look at the global profile under "visibility" and see what's there.  Should be a one-liner to include the editor in node edit forms.
  • If you want the editor elsewhere, there should be a note under the edit area in question, something like "CKEditor: the ID for excluding or including this element is..."  That's what you want to paste into the visibility box.

Let me know how that goes!

Tom

Larry Clapp
Larry Clapp's picture
Offline
Joined: 01/14/2011 - 06:15
Tom -- that worked for me,

Tom -- that worked for me, sort of.  I went to the page you mentioned and it told me I had no roles allowed to see CKEditor.  *facepalm*  I enabled "authenticated user" and tried a sample email post and CKEditor came right up.  Thanks for your help!

Larry Clapp, President, Tampa Heralds of Harmony, BHS

Larry Clapp
Larry Clapp's picture
Offline
Joined: 01/14/2011 - 06:15
*Pout*  I tried sending a

*Pout*  I tried sending a sample email using CKEditor and got the following error:

Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/messaging/messaging_phpmailer/PHPMailer/class.phpmailer.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tom/public_html/gsing_prod/sites/all/modules/gsing/mailinglist/mailinglist.module on line 570

Any clues?

Disabling CKEditor again until this is resolved.

Larry Clapp, President, Tampa Heralds of Harmony, BHS

admin
admin's picture
Offline
Joined: 04/22/2012 - 08:04
Sorry Larry - that's not

Sorry Larry - that's not related to CKEditor.  I updated one particular module today and made a mistake, wiping out the plugin that had been installed in the previous version.  So for an hour or so people were getting errors like that while I cleaned up.

T

Larry Clapp
Larry Clapp's picture
Offline
Joined: 01/14/2011 - 06:15
Thanks, Tom.  The error went

Thanks, Tom.  The error went away and I sent a test email and the formatting came through correctly in the email.  Yay!

Larry Clapp, President, Tampa Heralds of Harmony, BHS

Log in or register to post comments

Latest Tweets

Follow Us

Twitter icon
Facebook icon
Google+ icon
LinkedIn icon
YouTube icon
RSS icon

Contact

Email us

Main Phone: +1 604 451-SING (7464)
Fax: +1 604 451-7465

By mail:
Groupanizer
#202 - 4012 Cambie Street
Vancouver, BC V5Z 2X8
Canada

Business hours:
Mon-Fri 7:30am-5pm, Pacific Time Zone