[imp] Re: problems sending emails with attachment
Jan Schneider
jan at horde.org
Wed Apr 13 08:23:15 PDT 2005
Zitat von Robert Jaroszuk <zim at iq.pl>:
> Hello.
>
> I know this problem was discussed here before:
>
> -> http://lists.horde.org/archives/imp/Week-of-Mon-20030825/034443.html
>
> but I have a bigger problem :)
>
> [13-Apr-2005 14:40:41] PHP Fatal error: Allowed memory size of
> 41943040 bytes exhausted (tried to allocate 12353971 bytes) in
> /usr/local/pear/Net/SMTP.php on line 720
>
> I'm trying to send email with 4 MB file in attachment.
>
> PHP configuration:
>
> php_value memory_limit 40M
> php_value upload_max_filesize 8M
> php_value post_max_size 20M
>
> So it is not a problem with php itself (I tried to upload 4M file
> by using a simple php script and there were no problems with that).
>
> So, why php is trying to allocate > 50MB of memory to send 4MB file?
It isn't. It's trying to allocate 12MB, that's probably the size of the
base64 encoded attachment data. The rest of the 40MB memory is used by
other stuff.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the imp
mailing list