Quoting Josep Cols <jo...@cols.name>:

Hello:

Using IMP or DIMP, I'm unable to send mails with attached files wth a size > 3 Mb Using IMP, when I press the SEND button, the window changes to a black one and a "DONE" msg appears on the foot. Using DIMP, when I perss the Send Button, Send chnges to "Sending" and never ends.

Using IMP, the compose window says that the maximum upload file size = 20M

Using a client mail program (thunderbird) I can send messages with attached files of up to 15 Mb (minimum).

I can't see any error on httpd/access.log or error.log files

My php.ini file says:
post_max_size = 20M
upload_max_filesize = 20M

Any idea to search for or to solve the problem?

Thanks in advance

You will need to take into consideration a couple of things:

1. The file you are sending will not be sent in it's current format, it will be uuencoded. This will increase the size of the file by roughly 33%.

2. When sending an attachment, PHP will need something like the original file size + 5 or 6 times the uuencoded size of the file to run the file through several levels of PHP calls and memory allocations. This does not included the normal memory allocations for just sending mail. (note: I did all the PHP traces noted the memory allocations, I just didn't write down the numbers, doh!)

So, you are going to need to increase your memory_limit in you php.ini file by using some part of that formula.

Hope that helps resolve your problem.


--

Joe Besko                      Phone:        517.432.5335
Systems Programmer             Fax:          517.353.9847
Michigan State University      E-mail:       jbesko(a)msu.edu
313 Computer Center
East Lansing, MI 48824-1042


--
IMP mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscr...@lists.horde.org

Reply via email to