Maximum size allowed for message loading?

Hi,

I'm currently facing one problem when trying to load any email message with big size, in this case an email message with an attachment of 13 MB.

So, I want to ask you...it exists a maximum message size for loading it using Aspose MailMessage.load() method?

BTW, I'm using Aspose 2.1 version for Java 1.4.

Thanks in advance,

Alberto.

Hi Alberto,


Thank you for using Aspose.Email.

It seems that the attachment size by Oulook is limited to 20 MB by default (which can be increased as well) keeping in view different scenarios when a message with such a large attachment can face failure and retried for transmission again and again.

With respect to Aspose.Email, I am able to create a MSG file with attachment size upto 220 MB and then load the MSG file successfully without any error. Can you share with us what kind of problems are you facing while loading a MSG file with large attachment files? Please share your findings with us in detail and if possible, provide us with the sample file that we can use to reproduce the issue at our end.

It may be that the Java heap size be doing the problem. We request you to try increasing the Heap size for Java using options such as -Xms256M -Xmx1024M. Please let us know your feedback then. We will try to assist you as soon as possible.

Hi Kashif,

Sorry about the very delayed response, but i just wanted to confirm you that increasing the size of the heap as you suggested solved the issue.

Adding this to the java calling solved my problem: -Xmx256m.

Many thanks for the help.

Best regards,

Alberto.

Hi Alberto,


Thank you for the feedback and its good to know that the suggested method solved your issue. Please feel free to contact us if you have any other query/inquiry related to Aspose.Email for Java. We will be glad to assist you further.