|  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: sirber at webernic dot com
New email:
PHP Version: OS:


 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 13 15:01:30 2024 UTC