Results 1 to 7 of 7
  1. #1
    Join Date
    May 2006
    Posts
    310
    Plugin Contributions
    0

    Plaintext Line Wrap?

    I am wondering if there is anything that specifies a linewrap value in zencart for plaintext emails.

    I just completed a test registration and the welcome email looked dreadful with awkward linewrap issues

    Of course, I sent it to a yahoo address, so that might be a part of my problem I will also be trying with several other email programs, but wanted to see if I'm missing something in the meantime.
    Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Plaintext Line Wrap?

    There is a wordwrap setting of 76 characters, but I've never seen it cause a problem even on long lines.
    .

    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
    May 2006
    Posts
    310
    Plugin Contributions
    0

    Default Re: Plaintext Line Wrap?

    Thanks Dr Byte. I can't for the life of me figure out what is causing the strange line breaks.

    for example, In the welcome notice to a customer,
    some text appears as follows: (ignore the ** marks are for illustrative purposes)

    **This email address was given to us by you or by one of our customers.
    If you**
    feel that you have received this email in error, please send an email to
    <email address removed>

    of course that doesn't quite represent the full text, but my sitting and counting the actual characters from the first ** to the next ** is 76 characters exactly.

    Can you tell me where to find the 76 character limit and can it be removed?

    Thanks!
    Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Plaintext Line Wrap?

    You are the only one who has ever reported this as an issue.
    Thus ... FUTURE READERS ... NOTE: This should only be touched in very isolated cases.


    includes/functions/functions_email.php
    line 149 (v1.3.0.2) contains:
    Code:
          $mail->WordWrap = 76;    // set word wrap to 76 characters
    .

    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.

  5. #5
    Join Date
    May 2006
    Posts
    310
    Plugin Contributions
    0

    Default Re: Plaintext Line Wrap?

    Thanks Dr. Byte.
    Appreciate it.

    Will give that a try and hope it makes the emails look "nice" again.
    Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2

  6. #6
    Join Date
    May 2006
    Posts
    310
    Plugin Contributions
    0

    Default Re: Plaintext Line Wrap?

    And that was indeed what was doing it. Commented it out, emails looked good (well, with the exception of perhaps some really long html links that sometimes get generated for includion in the emails)

    put it back, and the ugly email came back.
    How odd.
    Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2

  7. #7
    Join Date
    Jun 2006
    Posts
    33
    Plugin Contributions
    0

    Default Re: Plaintext Line Wrap?

    OMG

    this is what im looking for!!!!! I am so happy now.

    http://www.zen-cart.com/forum/showthread.php?t=44309

    76 is not enough for Thai charactor with UTF-8


    thank you woodlandsprite to such a thread.

 

 

Similar Threads

  1. Can I transfer user passwords to plaintext?
    By tnawrath in forum General Questions
    Replies: 1
    Last Post: 17 Feb 2010, 05:03 PM
  2. GC Problem: Unrecognized SSL message, plaintext connection?
    By MarcRTHCO in forum Addon Payment Modules
    Replies: 1
    Last Post: 26 Nov 2008, 04:26 AM
  3. e-mail templates, footer plaintext doesn't match HTML?
    By funkey in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 13 Feb 2007, 02:51 AM
  4. emails sending in plaintext
    By sgflowers in forum General Questions
    Replies: 0
    Last Post: 21 Aug 2006, 12:01 AM

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