Response Timeout on Big Email Attachments

Aug 27, 2012 at 12:26 PM

Hi All,

 

Firstly I would like to know that what is the default maximum attachment/email size?

Secondly, I am having problem with receiving emails containing attachments larger than 6 MB. The system works smoothly on smaller attachments, but when a big attachment is received, I get response timeout exception. If I increase the Receive Timeout, it generates another exception stating ["Too much read count.Perhaps parser could not parse correctly"].

The code are looks like this

var count = cl.GetTotalMessageCount();
MailMessage msg = null;                
for (long i = 1; i <= count; i++)                   
{                       
   try                     
   {                           
       msg = cl.GetMessage(i);
   }
   catch(Exception){
   }
}

 

Please help me in this, I shall be very grateful to you :)

 

Thanks

Ammar Hasan

Coordinator
Aug 30, 2012 at 1:46 AM

This exception cause due to prevent infinite loop.
When 10000 loop, throw exception.

I modified it to 1000000 and upload new version.
It may download your big file.
Please check latest version.

Aug 30, 2012 at 12:49 PM

Thanks buddy,

Can I set that to int.MaxValue? Is it safe?

Coordinator
Aug 31, 2012 at 10:19 AM

I change the value of inside Pop3Client class.
So, you have nothing to do to reveice big file.

But I did not confirm whether 6MB is ok or not.
Please check and report me if inconvenience.


regards.