I am having troubles sending email with an attachment through rouncube. I did confirm that I can send attachments via IMAP using the Thunderbird email client. I have set PHP memory limit to 32M and the email attachment limit to 12M in roundcube. When I try to send a 2M attachment I get the following 2 lines in the error log:
[21-Jan-2010 07:00:27] PHP Warning: sort() expects parameter 1 to be array, boolean given in /var/www/roundcube/program/include/rcube_imap.php on line 1118
[21-Jan-2010 07:02:11] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 6952037 bytes) in /var/www/roundcube/program/lib/Net/SMTP.php on line 887
It looks like PHP is already exhausting the 32M, but I have no idea why? :confused:
Roundcube requires at least 15x more memory than the attachment size. This will be fixed in 0.4.
I did bump it up to 64M and the file sent. So if I want to send a 12MB file the I need to set the Memory Allocation to 180MB?
I also still get this error after the email with attachment is sent:
[21-Jan-2010 09:47:16] PHP Warning: sort() expects parameter 1 to be array, boolean given in /var/www/roundcube/program/include/rcube_imap.php on line 1118