HELP~~~something wrong about c# to download email

riccardo

Новичок
Регистрация
12.10.2013
Сообщения
15
Благодарностей
0
Баллы
1
hey guys:
sorry i am a nooooooooob

i use c# to download email in the zennoposter
BUT...
the error log said:
________________________________________________________
perform the action CSharp own code the server was unable to process~~~~plapla one the server in order to send the exception information back to the client,or turn on tracing as per the microsoft~~~~plapla
________________________________________________________

this is my c #


var email = (project.Variables["email"].Value);
Tuple<string, string, string, string>[] allMails;
allMails = ZennoPoster.BulkMailDownload(email,
"password", "pop3.live.com", 995, true,
ZennoLab.InterfacesLibrary.Enums.Email.EmailProtocol.POP3,
24*100, 100, true);

// loop fo all messages
foreach(Tuple<string, string, string, string> tuple in allMails)
{
// adding messages to the table called Tabl1
// tuple.Item1 - sibject, tuple.Item2 - from, tuple.Item3 - html message, tuple.Item4 - text message
List<string> tmp = new List<string>();
tmp.Add(tuple.Item1);
tmp.Add(tuple.Item2);
tmp.Add(tuple.Item3);
tmp.Add(tuple.Item4);
project.Tables["Tabl1"].AddRow(tmp);
}
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Please write exctly what error do you get
 

riccardo

Новичок
Регистрация
12.10.2013
Сообщения
15
Благодарностей
0
Баллы
1
perform the action csharp own code the server was unable to process the request due to an internal error. for more information about the error,either turn on include exception deta in faults(either from service bu havior attribute or from the {service debug}on the server in order to send the exception information back to the client,or turn on tracing as per the microsoft.NET framework SDK documentation and inspect the server trace logs.

____________________________________________
God....cant copy.i type....
 

Вложения

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
What ZennoPoster build do you use?
Try to test and download 1 email instead of 100.
 

riccardo

Новичок
Регистрация
12.10.2013
Сообщения
15
Благодарностей
0
Баллы
1
i use ZP v5.0.7.0
thanks ok i will change code check again....but even if there is one mail in mailbox,this c # still can not download ...
 

riccardo

Новичок
Регистрация
12.10.2013
Сообщения
15
Благодарностей
0
Баллы
1
i change code try to download 1 mail...............not work.....still error really dont know why
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
What email are you using? Is it hotmail? Outlook?
 

Вложения

riccardo

Новичок
Регистрация
12.10.2013
Сообщения
15
Благодарностей
0
Баллы
1
What email are you using? Is it hotmail? Outlook?
thank you bigcajones

i use what you give.but still error,message was:

perform the action csharp own code the server was unable to process the request due to an internal error. for more information about the error,either turn on include exception deta in faults(either from service bu havior attribute or from the {service debug}on the server in order to send the exception information back to the client,or turn on tracing as per the microsoft.NET framework SDK documentation and inspect the server trace logs.

same before

and even try other different code to download mail.... the error message was same
so i realize maybe the problem may not about code,maybe network connection or something else?

i am still searching
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
Have you tried downloading the SDK for your version of Windows?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Try to install Microsoft Windows SDK and use latest build.
 

riccardo

Новичок
Регистрация
12.10.2013
Сообщения
15
Благодарностей
0
Баллы
1

riccardo

Новичок
Регистрация
12.10.2013
Сообщения
15
Благодарностей
0
Баллы
1
Try to install Microsoft Windows SDK and use latest build.
i found another way to solve this ,i change code,use imap-mail.outlook.com,993 not POP3
like this:
Код:
var email = (project.Variables["email"].Value);
Tuple<string, string, string, string>[] allMails;
allMails = ZennoPoster.BulkMailDownload(email,
       "password", "imap-mail.outlook.com", 993, true,
       ZennoLab.InterfacesLibrary.Enums.Email.EmailProtocol.IMAP,
       24*100, 100, true);

foreach(Tuple<string, string, string, string> tuple in allMails)
{
    // adding messages to the table called Tabl1
    // tuple.Item1 - sibject, tuple.Item2 - from, tuple.Item3 - html message, tuple.Item4 - text message
      List<string> tmp = new List<string>();
       tmp.Add(tuple.Item1);
       tmp.Add(tuple.Item2);
       tmp.Add(tuple.Item3);
       tmp.Add(tuple.Item4);
       project.Tables["Tabl1"].AddRow(tmp);
}

test result is:email can be taken,but the mail cant be deleted....(i used "24*100, 100, true" code),so there was a problem that the email would be taken time and time again when i run this code.and result were repeated
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)