Author Topic: headers problem with php mail() method  (Read 3015 times)

Offline jonmansey

  • Newbie
  • *
  • Posts: 1
headers problem with php mail() method
« on: July 15, 2006, 10:53:10 PM »
Hi

I love roundcubemail, just great stuff guys, well done.

I have one little issue, I use php mail() sending method, I sent email to a buddy who uses Eudora for a client, he said he couldnt see any message body and pointed me to the fact that there are blank lines in the headers, see examples below. A blank line in headers is defined in the RFC to be the end of the headers. I had a quick look at the code but couldnt readily see where the blank lines were being added. I tested the smtp method and it doesnt appear to have this problem. Thunderbird, and rcmail itself, dont seem to mind these blank lines in headers, does that mean they are not RFC compliant, when Eudora is?

jm


test email headers when using php mail() method

Code: [Select]
Received: (qmail 20375 invoked by uid 33); 16 Jul 2006 02:30:20 -0000
To: [email]jon@mydomain.com[/email]
Subject: test
MIME-Version: 1.0

Date: Sun, 16 Jul 2006 2:30:20 +0000

From: Jon Mansey <jon@mydomain.com>
Message-ID: <4dd71c6e35428f27972bbe79cf87d799@localhost>

X-Sender: [email]jon@mydomain.com[/email]

User-Agent: RoundCube Webmail/0.1b

Content-Type: text/plain; charset=&quot;UTF-8&quot;

Content-Transfer-Encoding: 8bit



foo

bar



and same test with smtp method

Code: [Select]
Received: from unknown (HELO localhost) (jonm@127.0.0.1)
 by localhost with SMTP; 16 Jul 2006 02:38:02 -0000
MIME-Version: 1.0
Date: Sun, 16 Jul 2006 2:38:02 +0000
From: Jon Mansey
To: [email]jon@mydomain.com[/email]
Subject: test211
Message-ID: <4a4703d1096c6dc87a1d5b15f4c4a696@localhost>
X-Sender: [email]jon@mydomain.com[/email]
User-Agent: RoundCube Webmail/0.1b

Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit

askldjlas

asdasd