Illegal MIME chars in email header?

Author Message

Claire Lin

Monday 11 August 2003 1:57:45 pm

Hi,

Does anyone know how to fix this? My ISP told me that the emails sent after user registration and shopping cannot be received. The anti-virus app intercepted it, indicating the following problems: "Illegal MIME chars found in header".

Thanks,
Claire

Claire Lin

Friday 15 August 2003 12:24:55 pm

I solved the problem by replacing this line in lib/ezutils/classes/ezmail.php
//define( 'EZ_MAIL_LINE_SEPARATOR', "\r\n" );

with this line:
define( 'EZ_MAIL_LINE_SEPARATOR', "\n" );

Claire

Jan Borsodi

Saturday 16 August 2003 4:22:12 am

If you look at the rfcs for email,
http://www.faqs.org/rfcs/rfc822.html
(Search for HEADER FIELD DEFINITIONS)
and
http://www.ietf.org/rfc/rfc2045.txt

you'll see that CRLF is mentioned as the endline marker, CRLF are the two US-ASCII characters CR (13, 0x0d or \r) and LF (10, 0x0a or \n).
If you change the mail class to only use \n you will generate invalid emails, some email clients won't view them correctly either.

I suggest you talk with you ISP and tell them that their anti-virus app is not following the standard.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.