Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jul 2006
    Location
    Manchester
    Posts
    138
    Plugin Contributions
    1

    Default Tell-A-Friend messages stripped of HTML format

    Upgraded to version 139h.

    I'm testing the cart and found that Tell-A-Friend messages are coming through in plain text, stripped of or lacking HTML template formatting - there is no HTML in the messages when I view sources on receipt.

    Other messages, such as Welcome and Order Confirmation are coming through with beautiful HTML formatting, very pretty, but not Tell-a-Friend.

    E-mail Options ARE set True to "Use MIME HTML when sending messages".

    I have installed the "Captcha Using TTF and Guest Reviews" mod. to protect against spamming and wonder if this might be causing some conflict on this specific function.

    The email_template_tell_a_friend.html file IS present in the root\email folder on the site, so that shouldn't be a problem.

    There don't appear to by any easily visible syntax errors on the email_extras.php in either locations.

    Currently confused. Any suggestions?

    Last edited by worldmaker; 6 May 2011 at 09:02 PM.
    "Why dumb down when we can rise up?" Worldmaker / BonDevZone Store

  2. #2
    Join Date
    Jul 2006
    Location
    Manchester
    Posts
    138
    Plugin Contributions
    1

    Default Re: Tell-A-Friend messages stripped of HTML format

    I've been trying to discover where the break in the processing might be occurring, but can't find an easy way through the maze of php files.

    Can anyone point me to the paths whereby the Tell-A-Friend form triggers the email_template_tell_a_friend.html? Or any of the email templates, so I can compare how they are processed to find any possible break in the logic?

    There has to be a reason, either a break or a conflict, that's causing this behaviour, or is this normal?

    "Why dumb down when we can rise up?" Worldmaker / BonDevZone Store

  3. #3
    Join Date
    Jul 2006
    Location
    Manchester
    Posts
    138
    Plugin Contributions
    1

    Default Re: Tell-A-Friend messages stripped of HTML format

    Up-date of research.
    Just in case anyone wants to offer the basic advice, here are the points I've covered today.

    (1) Removed the suspect Captcha elements and replaced with original files, but that had no effect, so it wasn't the problem.

    (2) Switched template over to Classic, no effect, still no HTML messages.

    (3) Completely reloaded the entire cart, all files, no effect so no problem with missing files.

    Conclusion to-date, either it's a switch I've made somewhere deep in the system and not documented or a bug the doesn't produce html formatted Tell-A-Friend e-mails.

    Will continue when I can.

    "Why dumb down when we can rise up?" Worldmaker / BonDevZone Store

  4. #4
    Join Date
    Feb 2010
    Posts
    28
    Plugin Contributions
    0

    Default Re: Tell-A-Friend messages stripped of HTML format

    I have recently done a clean install of 1.3.9.h and still configuring. The tell a friend is working fine, though like you say, no HTML formatting.
    I have not yet installed the new TTF and GR addon, yet as i am still trying to get the product review working correctly. So it looks like the 1.3.9.h Tell a friend maybe without the html. Well it's not your addon anyway.

  5. #5
    Join Date
    Jul 2006
    Location
    Manchester
    Posts
    138
    Plugin Contributions
    1

    Default Re: Tell-A-Friend messages stripped of HTML format

    Quote Originally Posted by ksl1 View Post
    I have recently done a clean install of 1.3.9.h and still configuring. The tell a friend is working fine, though like you say, no HTML formatting.
    I have not yet installed the new TTF and GR addon, yet as i am still trying to get the product review working correctly. So it looks like the 1.3.9.h Tell a friend maybe without the html. Well it's not your addon anyway.

    I've been mulling this over for the last couple of days and have a sneaky feeling it's disabled.

    All other messages carry your brand logo and formatting, but would you really want that same formatting on a message supposedly sent from a "friend"?

    Something simpler might work better, so for now I'm not going to worry about the lack of HTML formatting on Tell-A-Friend messages.

    "Why dumb down when we can rise up?" Worldmaker / BonDevZone Store

  6. #6
    Join Date
    Feb 2010
    Posts
    28
    Plugin Contributions
    0

    Default Re: Tell-A-Friend messages stripped of HTML format

    yes it was disabled, what made it worse was the fact i never even noticed the button becuase i am colour blind with red & green, it appeared green to me because of the lights reflection.

    But I recalled the legend on buttons in the admin, that i just decided to press it, and it worked. But at least I had a good introduction to my way around the files.
    Last edited by ksl1; 12 May 2011 at 01:18 PM.

  7. #7
    Join Date
    Jul 2006
    Location
    Manchester
    Posts
    138
    Plugin Contributions
    1

    Default Re: Tell-A-Friend messages stripped of HTML format

    Quote Originally Posted by ksl1 View Post
    yes it was disabled, what made it worse was the fact i never even noticed the button becuase i am colour blind with red & green, it appeared green to me because of the lights reflection.
    Sorry, my mistake, what I meant was that the HTML processing is probably disabled at source code level, so it only produces plain text mails without all the Store styling.

    The "Allow Guest To Tell-A-Friend" function is probably off as an initial default, but it's that end formatting of the message that was worrying me.

    ... it's now been another looong day.
    "Why dumb down when we can rise up?" Worldmaker / BonDevZone Store

  8. #8
    Join Date
    Feb 2010
    Posts
    28
    Plugin Contributions
    0

    Default Re: Tell-A-Friend messages stripped of HTML format

    Quote Originally Posted by worldmaker View Post
    Sorry, my mistake, what I meant was that the HTML processing is probably disabled at source code level, so it only produces plain text mails without all the Store styling.

    The "Allow Guest To Tell-A-Friend" function is probably off as an initial default, but it's that end formatting of the message that was worrying me.

    ... it's now been another looong day.
    it's now been another looong day, tell me about it! I've been sat here for a good 12 hrs, plodding around. I've searched high and low for a switch for HTML tell a friend, if there was one, there would be a text/html box to choose from i would think. Oh well rest i need, can't even think straight at the moment.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Tell-A-Friend messages stripped of HTML format

    It is working as designed:
    a) ALL outgoing emails are sent in text-only format unless two conditions are met: (i) HTML/MIME format is enabled store-wide, and (ii) the recipient's email address is *also* a registered customer on your site *AND* they've selected to receive emails in HTML format (in their My Account preferences).
    b) Additionally, Tell A Friend cripples any HTML "message" entered on the tell-a-friend screen by whomever is "telling their friend". This is to disallow rogue/XSS/CSRF and other misuse of the email system since you're essentially opening up your site to be an email relay/spam system, and not stripping out the HTML could be very hazardous.

    Seems like you're tripping on (a) above. However, it's working exactly as designed. There are no switches to hunt down. No special magic settings to change. It's doing exactly what it's supposed to do.
    .
    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.

  10. #10
    Join Date
    Jul 2006
    Location
    Manchester
    Posts
    138
    Plugin Contributions
    1

    Default Re: Tell-A-Friend messages stripped of HTML format

    Quote Originally Posted by DrByte View Post
    It is working as designed:
    a) ALL outgoing emails are sent in text-only format unless two conditions are met: (i) HTML/MIME format is enabled store-wide, and (ii) the recipient's email address is *also* a registered customer on your site *AND* they've selected to receive emails in HTML format (in their My Account preferences).
    b) Additionally, Tell A Friend cripples any HTML "message" entered on the tell-a-friend screen by whomever is "telling their friend". This is to disallow rogue/XSS/CSRF and other misuse of the email system since you're essentially opening up your site to be an email relay/spam system, and not stripping out the HTML could be very hazardous.

    Seems like you're tripping on (a) above. However, it's working exactly as designed. There are no switches to hunt down. No special magic settings to change. It's doing exactly what it's supposed to do.
    Ah Ha! Clarification at last!

    I fully agree with the HTML stripping against spammers.

    I'll make notes of this for my own mini-manual. I knew there had to be something in there causing this behaviour but I couldn't find it.

    On the subject of guests sending messages to "friend" I've disabled this completely - no message box - and send out my own friendly invitation instead to block such misuse. If a customer or guest wants to know the message in advance they can always send it to themselves.

    "Why dumb down when we can rise up?" Worldmaker / BonDevZone Store

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. tell a friend txt vs html
    By NRG in forum General Questions
    Replies: 5
    Last Post: 26 Jun 2009, 07:32 AM
  2. Tell a friend in text Want in HTML
    By gloerick in forum General Questions
    Replies: 6
    Last Post: 7 Feb 2008, 04:28 AM
  3. SSL Link to Tell a Friend Page and Send in HTML
    By reeldealpa.com in forum General Questions
    Replies: 0
    Last Post: 23 Jul 2007, 06:28 AM
  4. Tell A Friend Email in Text Not HTML
    By mrrcomp in forum General Questions
    Replies: 3
    Last Post: 4 May 2007, 07:16 AM
  5. HTML tell a friend?
    By streetglow in forum Customization from the Admin
    Replies: 5
    Last Post: 7 Dec 2006, 01:37 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