Support » Knowledge Base » Mail »
An attempt to open a message with a large attachment (of at least 5 MB size) in WebAsyst Mail may end up with a memory exhaustion error message as shown below:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4 bytes)Processing of email messages containing attached files using PHP scripts involves loading the entire message including attachments into the server memory. Once loaded, the attached files are then separated from the textual part of the message. The files-separating process always requires an amount of memory exceeding the aggregate size of such files. For this reason, processing relatively small attachments is quite a memory-consuming routine.
Tip: To avoid problems opening messages with large attachments, it is advisable not to send over large files. First upload a file to a web server (e.g. using WebAsyst Files) and then add a link to it to your email message.
However, to ensure correct receiving of messages of any size, you may increase the amount of sever memory used by WebAsyst Mail by one of the methods described below: