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.

eZ debug

Timing: Jan 18 2025 16:05:16
Script start
Timing: Jan 18 2025 16:05:16
Module start 'layout'
Timing: Jan 18 2025 16:05:16
Module start 'content'
Timing: Jan 18 2025 16:05:16
Module end 'content'
Timing: Jan 18 2025 16:05:16
Script end

Main resources:

Total runtime0.0148 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 587.9219152.6250
Module start 'layout' 0.00480.0027 740.546939.4609
Module start 'content' 0.00760.0044 780.007889.3359
Module end 'content' 0.01190.0028 869.343834.3047
Script end 0.0148  903.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003523.4232140.0002
Check MTime0.001711.5369140.0001
Mysql Total
Database connection0.00063.938010.0006
Mysqli_queries0.002214.809630.0007
Looping result0.00000.107910.0000
Template Total0.001711.210.0017
Template load0.00106.898310.0010
Template processing0.00064.316510.0006
Override
Cache load0.00074.952610.0007
General
dbfile0.00021.657380.0000
String conversion0.00000.054840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs