Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2007
    Posts
    15
    Plugin Contributions
    0

    Default [Done v1.3.8] No newlines in Text-Only Message

    When I create an email in Tools > Send Email, and click 'preview', the text-only message has no newlines; all lines run into each other so the message is just one long line. Text-only customers receive it like that too.

    I've tried all combinations of PHP/sendmail and LF/CRLF, all with the same result.
    (I know LF/CRLF is a header setting but I thought I'd try anyway )

    It may not be relevant but images (including header.jpg) don't 'arrive' either, just image place-holder boxes.

    I'm using version 1.3.7.1
    I'm on a Linux server.
    'Use MIME HTML When Sending Emails' is set to true.

    Any ideas?
    Thanks
    Alan

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: No newlines in Text-Only Message

    1. Are you supplying any text-only content? Or are you just hoping that your HTML content will be automatically converted?

    2. I'm not surprised that the preview screen might look odd. That'll be cleaned up in a later release.

    3. Is this happening to *all* emails, or just the manual emails from Admin->Tools ?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: No newlines in Text-Only Message

    HTML has no linefeeds in the document, so if you enter everything in the HTML editor window, yes the resulting converted, stripped and cleaned text is all run together into one long block.
    This doesn't happen in the automatically generated messages because the HTML and text emails are separately generated. I think the original concept was that if you wished to send a text email you would compose it in the text window.
    Possibly naive in retrospect, the lure of WYSIWYG editors is irresistible.

  4. #4
    Join Date
    Aug 2007
    Posts
    15
    Plugin Contributions
    0

    Default Re: No newlines in Text-Only Message

    Thank you DrByte and Chuckl

    Yes, it is only in the manual emails.

    I understand now.

    When I re-type the message in the text-only box it does arrive OK with its newlines.
    But it is still all one line in the preview.
    Given how amazing this software is in so many other ways, I can live with that small glitch

    Cheers
    Alan

  5. #5
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: No newlines in Text-Only Message

    If you are feeling brave, a Google search for html2text php will show up several php scripts that claim to do this on the fly and automatically. I've never tried them, but it could be called on the way to the preview page...

    Rgds,

  6. #6
    Join Date
    Aug 2007
    Posts
    15
    Plugin Contributions
    0

    Default Re: No newlines in Text-Only Message

    Thanks for the idea, Chuckl.
    Not feeling quite brave enough yet

 

 

Similar Threads

  1. Replies: 2
    Last Post: 20 Feb 2013, 11:59 PM
  2. how to change text in Message box only ?
    By psvialli in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Jul 2011, 09:39 AM
  3. Stripping newlines and carriage returns.
    By Crin in forum General Questions
    Replies: 3
    Last Post: 1 Oct 2007, 03:00 PM
  4. Newlines in text attributes.
    By marknotgeorge in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 8 Jun 2007, 10:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR