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

  • Автор темы Автор темы riccardo
  • Дата начала Дата начала

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);
}
 
Please write exctly what error do you get
 
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....
 

Вложения

  • QQ图片20140312130406.jpg
    QQ图片20140312130406.jpg
    30,5 KB · Просмотры: 997
What ZennoPoster build do you use?
Try to test and download 1 email instead of 100.
 
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 ...
 
i change code try to download 1 mail...............not work.....still error really dont know why
 
What email are you using? Is it hotmail? Outlook?
 

Вложения

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
 
Have you tried downloading the SDK for your version of Windows?
 
Try to install Microsoft Windows SDK and use latest build.
 
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
 

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