[imp] Problems with attached files (base64_encode() issue)
Fred N. Souza
fred at freebsdbrasil.com.br
Thu May 6 14:08:55 PDT 2004
Hello,
I'm running IMP 3.2.3 installed from the ports system on a FreeBSD
5.2.1-RELEASE box. The Horde/IMP ports installed fine, but we are
experiencing a strange error. Whenever you try and send an attached
file with the mail, the message gets sent but without the attached
parts. Here's the only relevant log we can find about it, laying on
/var/log/httpd-error.log:
[Thu May 6 17:56:55 2004] [error] PHP Warning: base64_encode()
expects parameter 1 to be string, object given in
/var/vpopmail/www/horde/imp/compose.php on line 356
The line in question would be:
$encoded_contents = base64_encode($contents);
And $contents is indeed worked out before that call. I tried messing
around with it (I'm not a PHP coder, though) and changing the next
call, for chunk_split(), to:
$contents = chunk_split($contents, 76, "\n");
With, of course, commenting out the complaining function call to
base64_encode(). No luck. The messages gets sent with the attachments,
but they're all corrupted/changed.
I've searched the list for help on this issue, found a couple of
topics similar but nothing that could help me fix that. Is this a
known issue? I haven't found anything on it on the bug tracker either.
Can anyone point me to what to do to get it fixed?
Thank you all in advance,
--
Fred N. Souza
FreeBSD Brasil LTDA - http://www.freebsdbrasil.com.br/
More information about the imp
mailing list