Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Random Malformed order confirmation emails

    The < character is probably being treated as the beginning of an HTML tag, and since HTML tags are stripped out of text-only emails (for safety and appearance reasons), that's likely why the problem is occurring for you.

    Glad you have a workaround.
    .

    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.

  2. #12
    Join Date
    Jul 2009
    Posts
    103
    Plugin Contributions
    0

    Default Re: Random Malformed order confirmation emails

    Yes thanks! I guess this should be reported as a bug since, if the character is encountered as part of a static description field, it's obviously not an HTML tag and should be preserved for the text version.

    Cheers

    Cliff

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

    Default Re: Random Malformed order confirmation emails

    We'll look into it.

    However, HTML tags *do* (unfortunately) get used in various description fields, making it a little tough to apply simple generic rules to data parsing. Especially when the 'value' could be a text field that was entered by the customer ... which then brings security risks if not properly sanitized.
    .

    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.

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

    Default Re: Random Malformed order confirmation emails

    Puzzling. I've tested the use of "Child < 12" as the option value, and can't reproduce any problems with emails getting truncated.
    .

    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. #15
    Join Date
    Jul 2009
    Posts
    103
    Plugin Contributions
    0

    Default Re: Random Malformed order confirmation emails

    Dear Dr Byte

    I can now confirm that it ONLY happens if this exact condition is met : "Child <12" i.e. if there is NO SPACE between the "<" and the next bit of text! How funny!!

    I made a brand new test install and tested "Child < 12" which worked fine, and then "Child <12" which malformed the email.

    Can you work that one out? :)

    Kind regards

    Cliff

  6. #16
    Join Date
    Jul 2009
    Posts
    103
    Plugin Contributions
    0

    Default Re: Random Malformed order confirmation emails

    Hah! I also notice that if you should enter "Child <Twelve" for example, then it totally ignores the "<Twelve" bit in the description in the Admin panel, and in the shop it shows "[Child <Twelve"]" (i.e. followed by a quote mark)
    See image below:


    Interesting!

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

    Default Re: Random Malformed order confirmation emails

    What happens if you replace the "<" with "&lt;" instead?
    .

    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.

  8. #18
    Join Date
    Jul 2009
    Posts
    103
    Plugin Contributions
    0

    Default Re: Random Malformed order confirmation emails

    Dr Byte

    Just tested that, and whilst it looks correct on the option value (shows Child <12", when it gets to the checkout cart, it shows as "Child &lt;12" and the email is once again malformed.

    Cheers

    Cliff

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

    Default Re: Random Malformed order confirmation emails

    What exactly do you mean by "the email is malformed"? You mean it skips a section? Or do you mean the &lt; shows up in the email and makes it look funny?
    .

    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. #20
    Join Date
    Jul 2009
    Posts
    103
    Plugin Contributions
    0

    Default Re: Random Malformed order confirmation emails

    I showed in my first post exactly what happens. The email terminates after the "Child <12" product line is encountered and it skips the rest of the email - leaving out the order totals, payment method, shipping details etc.. here is the example from the first post again:
    "-----Original Message-----
    From: Elmbridge Choir Ticket Shop [mailto:tickets@*****.co.uk]
    Sent: 05 July 2009 07:59
    To: [email protected]
    Subject: [NEW ORDER] Order Confirmation No: 111


    AuthCode: TransID: 71P1129940060464T

    Order Confirmation from Elmbridge Choir Ticket Shop

    CUSTOMER NAME

    Thanks for shopping with us today!
    The following are the details of your order.
    ------------------------------------------------------
    Order Number: 111
    Date Ordered: Sunday 05 July, 2009
    Detailed Invoice:
    http://[removed]

    Products
    ------------------------------------------------------
    2 x Summer Picnic Concert - Molesey Regatta 19 July 2009 = £16.00
    Ticket Type ADULT
    2 x Summer Picnic Concert - Molesey Regatta 19 July 2009 = £8.00
    [FONT=&quot] Ticket Type CHILD"[/FONT]

    > It terminates here and only adds the " [FONT=&quot]This email address was given to us by you or by one of our customers..." bit.

    It also does the same with the email that goes to the customer.
    Cheers

    Cliff
    [/FONT]
    Last edited by cliffvt; 11 Aug 2009 at 11:33 PM.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v154 Order confirmation emails and Contact Us emails not being received
    By jcrewe in forum General Questions
    Replies: 5
    Last Post: 22 Mar 2015, 06:36 PM
  2. v153 Additional Order Confirmation & Order Update emails
    By dchquilling in forum General Questions
    Replies: 2
    Last Post: 13 Oct 2014, 05:04 PM
  3. Help: Not receiving [NEW ORDER] Order Confirmation Emails!
    By RocketFoot in forum General Questions
    Replies: 1
    Last Post: 15 Feb 2011, 05:55 PM
  4. random recieving order confirmation
    By boydiz in forum General Questions
    Replies: 0
    Last Post: 25 Sep 2007, 12:27 AM
  5. Order Confirmation Emails
    By customilluminations in forum General Questions
    Replies: 1
    Last Post: 21 May 2007, 07:37 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