Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2010
    Location
    Finland
    Posts
    463
    Plugin Contributions
    0

    Default Line spacing with Send Email to Customer

    Which template is used when sending email to customer in admin? I would like to introduce a few blank lines before the disclaimers. Now they look like of an extension of the signiture in the actual mail.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Send Email to Customer

    You can add some line breaks to the beginning of the disclaimer text in your admin email_extras.php language file.
    .

    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
    Mar 2010
    Location
    Finland
    Posts
    463
    Plugin Contributions
    0

    Default Re: Send Email to Customer

    Dear DrByte, is it possible for you to tell me which template is used, or do I have to manually go through the whole set? The question to your answer is "how do I add new empty lines to the disclaimer"! Unfortunately I don't know that either..... It could be "\n" or ...

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Send Email to Customer

    In my last post I told you: the admin email_extras.php language file.

    And yes, "\n" is a line break for text-only emails, and the system will translate that to <br> for HTML emails.
    .

    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
    Mar 2010
    Location
    Finland
    Posts
    463
    Plugin Contributions
    0

    Default Re: Send Email to Customer

    Nice, except my
    Code:
    define('EMAIL_DISCLAIMER', '\n\n\nVi har mottagit denna e-mail-adress av dig eller någon av våra kunder. Om du tycker att du mottagit detta e-mail i misstag var vänlig och skicka ett e-mail till  %s');
    and the email message ending in "KR, John"
    ends up in the mail like
    Code:
    ...
    KR, John
    nnnVi har mottagit ...
    BTW. Why is the "From" field editable as changing it doesn't seem to have any effect!?
    Last edited by kalastaja; 26 Oct 2012 at 07:34 PM.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Send Email to Customer

    '\n'
    is very different from
    "\n"

    The \n is only treated as a line-break when it's inside double-quotes. Not single-quotes.

    So, to add line breaks to the beginning, add "\n" specifically.

    ie:
    define('CONSTANT_NAME', "\n\n" . 'the usual text here');
    .

    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. v150 Send copy of contact us email to customer
    By Whot in forum General Questions
    Replies: 2
    Last Post: 25 Feb 2013, 01:27 PM
  2. How do I send BCC to myself when I Send Email to Customer?
    By Zinfandel in forum General Questions
    Replies: 3
    Last Post: 20 Aug 2008, 01:55 PM
  3. Send email when customer authorised?
    By Raina in forum Customization from the Admin
    Replies: 3
    Last Post: 3 Nov 2007, 01:55 AM
  4. email issue with admin gv send and reg email
    By barco57 in forum General Questions
    Replies: 2
    Last Post: 31 Oct 2006, 04:08 AM
  5. email wont send to customer, but admin get email just fine
    By Jiancai in forum General Questions
    Replies: 1
    Last Post: 11 May 2006, 03:05 PM

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