Mail: Additional Headers -> body?

Author Message

Thomas Schamm

Monday 27 October 2003 3:00:51 pm

Hi,

i have a problem which i think is no special ezp problem, but php. Perhaps someone has experience with this: When i let ezp send a mail through sendmail (debian 3.0, php 4.3.3), i get the message correctly, but the additional header elements (X-Mailer:, User-Agent:, ...) show up not in the header, but in the body. I think this must be a php configuration problem, but i found nowhere aid to this problem.
If someone can give me a hint, thank you!!

Regards, Thomas

Marco Zinn

Friday 31 October 2003 2:54:07 pm

No hint yet, sorry.
But I can confirm the error running PHP 4.2.2.
I receive all extra headers in the mail body. Subject line is okay.
Plus, i get extra blank lines in the mail, that ez3 sends (CR+LF problem?).
I'm using Eudora 5.2 on windows, which has no problem with linefeeds in any other mail.

Edit:
I'm running a ezP 2.2.9 installation on the same server (PHP). The mails from there do not have any mail headers in the body... but i don't know, if ez2 sends any.

Marco
http://www.hyperroad-design.com

Mark Kruse

Monday 10 November 2003 6:51:10 am

You can edit the lib/ezutils/classes/ezmail.php
The Line Separator (a constant at the top of the file) is set with "\r\n". You can set this to "\n".

This is not corect anymore, but on our server with php 4.3.3 it works.

Greetings,

Mark

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 31 2025 06:25:54
Script start
Timing: Jan 31 2025 06:25:54
Module start 'layout'
Timing: Jan 31 2025 06:25:54
Module start 'content'
Timing: Jan 31 2025 06:25:54
Module end 'content'
Timing: Jan 31 2025 06:25:54
Script end

Main resources:

Total runtime0.0131 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.0050 588.2500151.2266
Module start 'layout' 0.00500.0023 739.476636.6797
Module start 'content' 0.00720.0045 776.156390.1875
Module end 'content' 0.01170.0014 866.343833.9922
Script end 0.0130  900.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002418.1281140.0002
Check MTime0.00118.3364140.0001
Mysql Total
Database connection0.00086.189810.0008
Mysqli_queries0.002015.450830.0007
Looping result0.00000.069310.0000
Template Total0.00118.510.0011
Template load0.00086.394110.0008
Template processing0.00032.033510.0003
Override
Cache load0.00064.413510.0006
General
dbfile0.00031.927780.0000
String conversion0.00000.054740.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