Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2005
    Location
    Charlottesville, VA
    Posts
    431
    Plugin Contributions
    0

    Default "500 line too long" error from Exchange

    Howdies.

    This may be an issue for my web host, but I thought I'd run it by here, too.

    We started getting a lot of failures on email messages from ZC, usually on long orders of many items.

    When I open the server email log in a code editor, I do see <div class="order-detail-area"> <table class="product-details" ... as a very long line, over 2000 characters.

    This isn't a problem for a webmail server like Yahoo, but it's making our local Exchange 2003 server reject these orders.

    Is there a way I can control line length generation in ZC email??

    The error message is:

    Code:
    From MAILER-DAEMON Wed Jul 26 08:55:05 2006
    Return-path: <>
    Envelope-to: [my user name]@exodus.lunarpages.com
    Delivery-date: Wed, 26 Jul 2006 08:55:05 -0700
    Received: from mailnull by exodus.lunarpages.com with local (Exim 4.52)
    	id 1G5liz-0002Wi-Mi
    	for [my user name]@exodus.lunarpages.com; Wed, 26 Jul 2006 08:55:05 -0700
    X-Failed-Recipients: [email protected]
    Auto-Submitted: auto-generated
    From: Mail Delivery System <[email protected]>
    To: [my user name]@exodus.lunarpages.com
    Subject: Mail delivery failed: returning message to sender
    Message-Id: <[email protected]>
    Date: Wed, 26 Jul 2006 08:55:05 -0700
    
    This message was created automatically by mail delivery software.
    
    A message that you sent could not be delivered to one or more of its
    recipients. This is a permanent error. The following address(es) failed:
    
      [email protected]
        SMTP error from remote mail server after end of data:
        host mail.coreknowledge.org [216.12.92.18]: 500 Line too long
    Thanks for your guidance!!! I wonder if this affects anyone else?

  2. #2
    Join Date
    Jul 2005
    Location
    Charlottesville, VA
    Posts
    431
    Plugin Contributions
    0

    Default Re: "500 line too long" error from Exchange

    More information.

    Before I upgraded to 1.3.0.x in late April, HTML multipart email had this header:
    Code:
    Content-Type: text/html; charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    After I upgraded, the HTML multipart email had this header:
    Code:
    Content-Type: text/html; charset = "iso-8859-1"
    Content-Transfer-Encoding: 8bit
    It appears that coincides with our problem. I would assume that is not generated by our web host, but occurred with the introduction of
    Code:
    X-Mailer: PHPMailer [version 1.73] via Zen Cart
    Before that, it was
    Code:
    X-Mailer: Zen Cart Mailer
    When I look at the email log (these are sendmail error emails rejected for numerous reasons) in a code editor (using PSPad), the email with "quoted-printable" has nicely formed limited line lengths.

    The email with 8bit encoding has ghastly long 2000 character + line lengths for order product detail.

    I will check in ZC and see where this might be configurable.

    Thanks in advance for any expert guidance!!!!

    ---Diana

  3. #3
    Join Date
    Jul 2005
    Location
    Charlottesville, VA
    Posts
    431
    Plugin Contributions
    0

    Default Re: "500 line too long" error from Exchange

    I went and made this change in includes/classes/class.phpmailer.php:

    Code:
      /**
         * Sets the Encoding of the message. Options for this are "8bit",
         * "7bit", "binary", "base64", and "quoted-printable".
         * @var string
         */
      var $Encoding          = "quoted-printable";
    Is there any reason I should NOT make this change?

    thanks in advance!! It seems to be working so far.

 

 

Similar Threads

  1. Storefront gets "500" error, but admin works fine?
    By mgifts in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 11 Oct 2009, 04:03 AM
  2. Replies: 3
    Last Post: 3 Jun 2008, 11:41 AM
  3. 1406 Data too long for column "last_page_url" at row 1
    By time4fishing in forum PayPal Website Payments Pro support
    Replies: 2
    Last Post: 11 Jan 2008, 01:00 AM
  4. Help, getting "500-Internal server error"
    By webmiss in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 31 Jul 2007, 03:17 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR