This project is read-only.
1

Closed

Error when trying to get a message

description

I'm trying to get a message that contains an attachment size of 5 MB.
 
for (int i = 0; i < cl.GetTotalMessageCount(); i++)//total count of inbox messages is 3
{
//The first and second message was received successfully
//Further, I am trying to get an email with an attachment size of 5 mb
Pop3Message mg = client.GetMessage(i + 1);// Pop3RecieveExeption was unhandled - "Response timeout"
richTextBox1.BeginInvoke(rta, new object[] { "Message №: " + (i + 1).ToString() });
richTextBox1.BeginInvoke(rta, new object[] { "From: " + mg.From });
richTextBox1.BeginInvoke(rta, new object[] { "Header: " + mg.Header[0].Value.ToString() });
richTextBox1.BeginInvoke(rta, new object[] { "Message text: " + mg.BodyText });
 
As I understand the error occurs because of long downloading of an attachments file?
Maybe there is another way to get a message which have large attachments?
Closed Mar 12, 2012 at 4:10 AM by higty

comments

higty wrote Dec 19, 2011 at 4:50 PM

C#Mail moved to http://higlabo.codeplex.com
Please check latest version on here.

You can set a ReceiveTimeout property of Pop3Client class to download big data.
regard.

Karaman_aleksandr wrote Dec 20, 2011 at 12:18 PM

Ok, thank you!

wrote Mar 12, 2012 at 4:10 AM

wrote Feb 14, 2013 at 7:38 PM

wrote May 16, 2013 at 9:35 AM