Header problem on LAMP + Postfix

DavidBourque

New Member
Hi

i have currently a header problem on the mail a user receive when subscribing.

It look like this:

--header--
Microsoft Mail Internet Headers Version 2.0
Received: from intranet.domain.com ([192.168.*.*]) by server.domain.com with Microsoft SMTPSVC(6.0.3790.4675);
Wed, 16 May 2012 12:26:26 -0400
Received: by intranet.domain.com (Postfix, from userid 33)
id 039DF7FB37; Wed, 16 May 2012 12:26:57 -0400 (EDT)
To: [email protected]
Subject: Votre demande d'inscription
Message-ID: <[email protected]>
--header--

Then i receive in the mail body:


Mime-Version: 1.0

From: "My Name" <[email protected]>

Date: Wed, 16 May 2012 12:26:57 -0400

X-Mailer: PHP/5.3.2-1ubuntu4.7

Content-Type: text/plain; charset=utf-8; Format=flowed

Content-Transfer-Encoding: 8bit
Return-Path: [email protected]
X-OriginalArrivalTime: 16 May 2012 16:26:26.0070 (UTC) FILETIME=[A3CF1360]

It seem a problem with the line break/end of line in the script.

I have read a little bit about this and if i'm correct, it can happen when the line is too long or when the line return is incorect for the OS. (Linux and windows use different line break)

PHP recommend using PHP_EOL but i dont know what file to modify and how. Does someone have an idea ?

(sorry for the engrish, not my first language)
 

stanbusk

Administrator
Staff member
Our script uses the standard PHP command mail(). IT is rock solid since in 5 years it is the first time I heard about such problem :-/
 

DavidBourque

New Member
it seem my mail is sended in UTF-8 and there is 2 line commented in the script.


//$subject = utf8_encode( $subject );
//$message = utf8_encode( $message );


does it have to be used? i have some special character problem in the mail also.
 
Top