Hi All,
this is a common problem among webmail clients: the body of the message can easily become a huge string that needs roughly 2x its size to be processed. That happens because the PHP interpreter shall parse the entire string to convert newlines characters so they're RFC compliant before doing the SMTP connection.
If you have Sendmail running on the same machine as Roundcube, you can also follow another approach: instead of a SMTP connection, open a direct socket connection to Sendmail (assuming you're working on a Linux/UNIX box). Not only it's much faster, you also don't need to replace newlines because Sendmail will do it for you (thus honoring the Unix mantra "be liberal in what you accept, be strict in what you send"):
http://www.webservertalk.com/message1285765.htmlThe last webmail system I used (Telaen.org) let you choose between a SMTP connection and a straight Sendmail connection in its configuration file. I ran some tests, and the results were quite impressive: the same message that made SMTP run out of memory was being delivered fast and without errors when I used the Sendmail connection.
By the way, Telaen uses the well-known and well-documented PHP Mailer class:
http://sourceforge.net/projects/phpmailer...therefore I assume that also Roundcube could.
IMHO it's a matter of development strategy: this workaround would work for a large share of users, but it's not applicable by everyone. For that reasons, developers could be reluctant in add such a feature. I would be interested in hearing their thoughts.
Cheers,
Corrado Fiore