#27499 [Opn->Bgs]: problem with imap_append
| From: | iliaa@php.net | Date: | Sat, 06 Mar 2004 18:32:07 +0000 |
| Subject: | #27499 [Opn->Bgs]: problem with imap_append | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-55996@lists.php.net to get a copy of this message | ||
ID: 27499
Updated by: iliaa@php.net
Reported By: vincent1 at cegetel dot net
-Status: Open
+Status: Bogus
Bug Type: IMAP related
Operating System: windows 2000
PHP Version: Irrelevant
New Comment:
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 http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
PHP function is a simple wrapper around the imap's library
mail_append_full() function, which appears to have the
limitation you have mentioned. Please report this bug to
the IMAP library developers.
Previous Comments:
------------------------------------------------------------------------
[2004-03-04 17:46:32] vincent1 at cegetel dot net
Description:
------------
Sorry for my english
When i want to do a mail copy by imap_append, imap_append return false
if the attachment(s) exceed approximately 900 Ko.
If the attachment(s) dont exceed the 900 Ko, imap_append return true.
Reproduce code:
---------------
<?
$stream=@imap_open("(localhost:143)","$login","$password")
$boundary = "------=".md5(uniqid(rand()));
$header = "MIME-Version: 1.0\r\n";
$header .= "Content-Type: multipart/mixed;
boundary=\"$boundary\"\r\n";
$header .= "\r\n";
$file=c:/file_name;
$ouv=fopen ("$file", "rb");$lir=fread ($ouv, filesize
("$file"));fclose
($ouv);
$attachment = chunk_split(base64_encode($lir));
$msg2 .= "--$boundary\r\n";
$msg2 .= "Content-Transfer-Encoding: base64\r\n";
$msg2 .= "Content-Disposition: attachment; filename=\"$file\"\r\n";
$msg2 .= "\r\n";
$msg2 .= $attachment . "\r\n";
$msg2 .= "\r\n\r\n";
$msg3 .= "--$boundary--\r\n";
imap_append($stream,"{".$serveur_mail."}Sent Items","From:
expediteur\r\n"."To: vinvin@raouldomain.com\r\n"."Subject:
sujet\r\n"."$header\r\n"."$msg2\r\n"."$msg3\r\n");
imap_close ($stream);
?>
Expected result:
----------------
Normally, imap_append would have send the message with attachement(s)
in Sent Items box same when the attachment(s) exceed approximately 900
Ko
Actual result:
--------------
If the attachment(s) exceed approximately 900 Ko, imap_append not send
the message in Sent Items box
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27499&edit=1