[imp] Re: Problem with atachment

Michael M Slusarz slusarz at mail.curecanti.org
Wed Feb 9 21:04:17 PST 2005


Quoting Martins Purins <Martins.Purins at lu.lv>:

> Hello.
> We allow our clients mails up to 20Mb each. Now, I tested IMP with a 
> 17MB attachment and got errors
>
> PHP Version: 4.3.2
>     * Horde: 2.2.7
>     * IMP: 3.2.7 (run IMP tests)
>     * Turba: 1.2.1
>     * Passwd: 2.2.1
>
> LimitRequestBody 25242880
> post_max_size = 25M
> upload_max_filesize = 25M
>
> Atached File size ~17MB
>
> memory_limit = 8M
> I have get error like this
> Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to 
> allocate 17269036 bytes) in /var/www/html/horde/imp/compose.php on 
> line 331
>
> Then I set
> memory_limit =32M
> Fatal error: Allowed memory size of 33554432 bytes exhausted (tried 
> to allocate 23025385 bytes) in /var/www/html/horde/imp/compose.php on 
> line 357
>
> And finally I set
> Fatal error: Allowed memory size of 134217728 bytes exhausted (tried 
> to allocate 46658595 bytes) in /var/www/html/horde/imp/compose.php on 
> line 906
>
> All three times I try send the same file, but without result. Any
> suggestions?

Yes - don't send 17MB files using Internet mail.  There has been 
numerous posts about this in the past (search the archives), but the 
current internet mail system was NOT designed for files this big 
(remember that not only is the file 17MB, but you have to base64 encode 
it which will increase the size by at least 1/3).  I sure as heck don't 
want a 25MB+ email message showing up on my (potentially quota-limited) 
system.

The workaround solution - just disable memory_limit on your PHP entirely.

michael

_______________________________________
Michael Slusarz [slusarz at curecanti.org]


More information about the imp mailing list