Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2006
    Posts
    13
    Plugin Contributions
    0

    Default plain email line breaks

    Hello,

    I would like to change the wording of the gv_mail.php. It's been really confusing for people. They think that they just have to click the redemtion link to get credit upon checkout.

    Anyway, my problem is this. I NEED to add some line spaces/<br> tags to the below paragraph so it doesn't come out like a huge blob.

    How do I add in line breaks for plain text emai? I added {LINE BREAK} so you know where I want the breaks.


    define('TEXT_TO_REDEEM', 'To CONFIRM receipt of this ' . TEXT_GV_NAME . ', please click on the link below. Please also write down the ' . TEXT_GV_REDEEM . ' {LINE BREAK} AFTER you have confirmed this, the Gift Certificate will be put into your account like a bank deposit. {LINE BREAK} TO USE YOUR GIFT CERTIFICATES during checkout you must Apply the balance when asked. [Step 2 of checkout.] It is just like a bank. You an apply any amount of your gift certificates at checkout or you can also send part or all of it to your friends via email!' );


    Thanks!

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

    Default Re: plain email line breaks

    Use "\n" to produce a line-break.

    Note that it has to be inside double-quotes, and not also inside single quotes

    ie:
    define('BLAHBLAH', '... also write down the ' . TEXT_GV_REDEEM . "\n" . ' AFTER you have c ... ');
    .

    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.

 

 

Similar Threads

  1. v151 No line breaks in Contact Us email customer inputted text
    By Emmo1234 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Jan 2013, 02:42 PM
  2. Getting Rid of Order Confirmation Email Line Breaks
    By kdipaolo in forum General Questions
    Replies: 1
    Last Post: 13 Dec 2011, 05:40 PM
  3. Can I remove the line-breaks in order confirmation email?
    By idc1 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Dec 2011, 03:19 AM
  4. Line break in plain text confirmation email
    By odlarn in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Sep 2010, 02:55 AM
  5. Line breaks in welcome email aren't working
    By vivani in forum General Questions
    Replies: 1
    Last Post: 13 Jul 2010, 09:46 AM

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