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
    Posts
    26,065
    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
    Get Your Business Found

  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
    58,268
    Blog Entries
    3
    Plugin Contributions
    106

    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!
    Donations always welcome: www.zen-cart.com/donate

    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
    58,268
    Blog Entries
    3
    Plugin Contributions
    106

    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!
    Donations always welcome: www.zen-cart.com/donate

    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,158
    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. Footer does not render and is not disabled in templates
    By lbpp in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 3 Oct 2006, 02:35 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
  •