RainLoop / rainloop-webmail

Simple, modern & fast web-based email client
http://rainloop.net
MIT License
4.11k stars 893 forks source link

Image added via HTML editor removed from body if image > ~500kb #1075

Open bjarnoldus opened 8 years ago

bjarnoldus commented 8 years ago

When adding an image via the HTML editor to the mail and it exceeds ~500kb, the complete body of the mail will be removed.

Reproduce: Create a mail, press the add image, and select an image > 500kb (I tried from 900kb). Send message and the body is filtered away.

I already checked the code: the server settings are correct and I see the image and body is available in the $sText variable in the buildMessage function of Actions.php. However when BuildHTML is called, this function is not able to remove the image and returns an empty body. In the beginning I was thinking it has to do with my server settings, but large attachments are now working, and the image is processed by PHP. So I think there goes something wrong in the BuildHTML function.

Thanks for making this great product :-)

RainLoop commented 8 years ago

Thanks