ID:               31142
 User updated by:  sean-freebsd at farley dot org
 Reported By:      sean-freebsd at farley dot org
-Status:           Feedback
+Status:           Open
 Bug Type:         IMAP related
 Operating System: *
 PHP Version:      4CVS, 5CVS (2004-12-17)
 New Comment:

My sample script is the one from the man page:
http://us2.php.net/manual/en/function.imap-mail-compose.php

Apache modules:
core prefork http_core mod_so mod_access mod_auth mod_auth_anon
mod_auth_dbm mod_charset_lite mod_include mod_deflate mod_log_config
mod_logio mod_env mod_mime_magic mod_cern_meta mod_expires mod_headers
mod_usertrack mod_unique_id mod_setenvif mod_ssl mod_mime mod_status
mod_autoindex mod_asis mod_info mod_cgi mod_vhost_alias mod_negotiation
mod_dir mod_imap mod_actions mod_speling mod_userdir mod_alias
mod_rewrite sapi_apache2

PHP extensions:
imap, pcre, pgsql, session, standard, xml

PHP Configuration:
'./configure' '--enable-versioning' '--enable-memory-limit'
'--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php'
'--disable-all' '--with-regex=php' '--with-apxs2=/usr/local/sbin/apxs'
'--prefix=/usr/local' 'i386-portbld-freebsd4.9'

No Zend extensions/modules added.

The only unusual thing I noticed is according to phpinfo() I have an
older IMAP library than what is installed (2004a):
IMAP c-Client Version   2000
SSL Support     enabled


Previous Comments:
------------------------------------------------------------------------

[2004-12-19 21:10:37] mcsoftware at alikuvkoutek dot cz

Works fine before software upgrade (imap is the same as before)...

Now from php_info()
-------------------

Loaded Modules: mod_php5, mod_gzip, apache_ssl, mod_headers,
mod_expires, mod_auth, mod_access, mod_rewrite, mod_alias, mod_imap,
mod_dir, mod_autoindex, mod_include, mod_negotiation, mod_mime,
mod_log_referer, mod_log_agent, mod_log_config, http_core

Apache Version: Apache/1.3.33 Ben-SSL/1.55 (Unix) PHP/5.0.3
mod_gzip/1.3.26.1a

IMAP c-Client Version: 2001     
SSL Support: enabled

------------------------------------------------------------------------

[2004-12-19 20:26:12] [EMAIL PROTECTED]

Works fine in latest CVS, do you have any Zend Modules loaded?

------------------------------------------------------------------------

[2004-12-19 19:31:42] mcsoftware at alikuvkoutek dot cz

I hope, this is the same error as described in this bug report...

CODE
----

$envelope["from"]= '[EMAIL PROTECTED]';
$envelope["return_path"]= '[EMAIL PROTECTED]';

$part1["type"]=TYPETEXT;
$part1["subtype"]="plain";
$part1["encoding"]=ENCQUOTEDPRINTABLE ;
$part1["charset"]='iso-8859-2';
$part1["contents.data"]=imap_8bit('asn řkl');

$body[0]=$part1; // or [1] as well

$envelope = unserialize(serialize($envelope));
$body = unserialize(serialize($body));
$message = imap_mail_compose($envelope, $body);

echo $message;

EXPECTED RESULT
---------------

e-mail message in MIME format (headers, double new line, encoded body)

RESULT
------

the same text as in $part1["contents.data"].

------------------------------------------------------------------------

[2004-12-19 19:20:02] [EMAIL PROTECTED]

Please provide a short example script.

------------------------------------------------------------------------

[2004-12-17 07:33:12] sean-freebsd at farley dot org

Description:
------------
I noticed the problem after upgrading from PHP v4.3.4 to v4.3.10. 
ISMail (http://www.insidesystems.net/projects/project.php?projectid=4)
stopped working.  None of the headers provided in the envelope argument
were being returned by the function.

I also attempted running the example code (using /etc/motd for the file
in the code) from the man page for this function without success:
----begin output----
--0-1804289383-1103265027=:94095--<br />
----end output----



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31142&edit=1

Reply via email to