Author Topic: Sending Attachment  (Read 3011 times)

Offline prodigerati

  • Newbie
  • *
  • Posts: 3
Sending Attachment
« on: January 21, 2010, 11:42:31 AM »
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:

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Sending Attachment
« Reply #1 on: January 21, 2010, 12:47:01 PM »
Roundcube requires at least 15x more memory than the attachment size. This will be fixed in 0.4.

Offline prodigerati

  • Newbie
  • *
  • Posts: 3
Sending Attachment
« Reply #2 on: January 21, 2010, 01:01:12 PM »
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:

Code: [Select]
[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