|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21521 Read mail in Outlook
Submitted: 2003-01-08 12:05 UTC Modified: 2003-01-08 13:18 UTC
From: sirber at webernic dot com Assigned:
Status: Not a bug Package: Mail related
PHP Version: 4.2.3 OS: Debian 3.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
39 - 2 = ?
Subscribe to this entry?

 [2003-01-08 12:05 UTC] sirber at webernic dot com
When using imap_mail_compose, and then sending the mail with:

$mail = imap_mail_compose($envelope,$body);
mail ($to, $sujet, "", $mail);

In Outlook XP I recieve in the text area:


Subject: test 2


MIME-Version: 1.0

Content-Type: MULTIPART/mixed; BOUNDARY="-1463811584-1952143814-1042048373=:3444"

X-Priority: 3

X-MSMail-Priority: High

X-Mailer: (PHP 4.2.3)

Message-Id: <E18WKNq-0001vv-00@webernic>
Sender: www-data <>
Date: Wed, 08 Jan 2003 12:52:54 -0500


Content-Type: TEXT/plain; CHARSET=US-ASCII

Content-Description: Message




In Hotmail, the text is ok. Only "ata" is displayed.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-08 13:18 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Please post scripting questions to

As to your specific problem, it is most likely cause by one or more newlines in your subject variable "$sujet" or in your $envelope.

Some mail clients will attempt to accomodate such missends, others will work despite them (quasi-incorrect behavior mind you), and others will be strict about it.

A good debugging trick you can use to find the location of the spurrious newline in Outlook is to right click on the message, select "Options", and view the header contents in the window which pops up.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 01 04:01:29 2023 UTC