Results 1 to 7 of 7
  1. #1

    e-mail templates, footer plaintext doesn't match HTML?

    Hi everyone,

    I'm using ZC 1.2.7 (that's been customised everywhere *but* the e-mail functions) and i've been scratching my head trying to get the footer/disclaimer onto a plain text e-mail.

    In short, it just doesn't seem to work -- if I define EMAIL_FOOTER_COPYRIGHT and EMAIL_DISCLAIMER in both the admin/includes and includes/ directories, the welcome e-mail will print both of them on the HTML based e-mail (which works), but neither of them on the plain text one.

    If I set the MIME type in the admin to TEXT, it doesn't print them on the welcome e-mail either, just to clarify.

    Sending e-mail works -- receiving does too, so everything works OK, it just doesn't look good :)

    Having a look through includes/functions/functions_email.php, I see that the references to these defines (starting at line 235) are in a function called zen_build_html_email_from_template, could that have something to do with it?

    Any help, or advice where to look next, would be appreciated.

    Paul

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: e-mail templates, footer plaintext doesn't match HTML?

    by default, an email sent as text will not include html formatting and will default to text only. This is a function of how the recipient can receive mail and not one specific to ZenCart.
    Zen-Venom Get Bitten

  3. #3

    Default Re: e-mail templates, footer plaintext doesn't match HTML?

    Quote Originally Posted by kobra View Post
    by default, an email sent as text will not include html formatting and will default to text only. This is a function of how the recipient can receive mail and not one specific to ZenCart.
    I'm aware of that, my thought process was more along the lines of 'maybe the spam/disclaimer messages are only included in the HTML message because the functions they are called from are sourced 'after' the text-only message has been generated'.

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

    Default Re: e-mail templates, footer plaintext doesn't match HTML?

    Those texts are not included in non-HTML messages.

    Feel free to add them if you like. You'll have to account for a few differences depending on which emails you're sending.

    You could search for "zen_mail(" to find all the cases where an email message is sent, and then backtrack in the code to add the text from the additional constants as desired. About 27 places to edit.
    .

    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

    Default Re: e-mail templates, footer plaintext doesn't match HTML?

    Quote Originally Posted by DrByte View Post
    Those texts are not included in non-HTML messages.

    Feel free to add them if you like. You'll have to account for a few differences depending on which emails you're sending.

    You could search for "zen_mail(" to find all the cases where an email message is sent, and then backtrack in the code to add the text from the additional constants as desired. About 27 places to edit.
    ah, figured that'd be something like the answer :)

    Thanks DrByte -- would a patch be accepted by the ZC-team to fix this behaviour? ( after i've fixed it for me, i've got to fix it for 1.3.x too :) )

    Paul

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

    Default Re: e-mail templates, footer plaintext doesn't match HTML?

    feel free to post a patch if you feel others will benefit

    the whole email system is being revamped to have its own templating system, which will make this issue less of a challenge in the future
    .

    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.

  7. #7
    Join Date
    Nov 2003
    Posts
    1,155
    Plugin Contributions
    0

    Default Re: e-mail templates, footer plaintext doesn't match HTML?

    Quote Originally Posted by DrByte View Post
    the whole email system is being revamped to have its own templating system, which will make this issue less of a challenge in the future
    Wow, excellent

 

 

Similar Threads

  1. v154 What happens if country doesn't match?
    By s_mack in forum PayPal Express Checkout support
    Replies: 6
    Last Post: 28 Oct 2015, 08:14 AM
  2. v151 Why my new templates installed doesn't appear in the templates selection?
    By dijah in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 14 Apr 2014, 11:08 AM
  3. Count doesn't match value
    By characterdriven in forum Setting Up Categories, Products, Attributes
    Replies: 24
    Last Post: 1 Aug 2008, 12:36 PM
  4. TXT mail YES but HTML mail NO???
    By stevefriedman71 in forum General Questions
    Replies: 13
    Last Post: 1 Feb 2007, 09:48 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