Bulk Email Processing

nitin2003

Client
Регистрация
18.09.2012
Сообщения
195
Благодарностей
11
Баллы
18
I tried using this code today with hotmail and yahoo both..
For both the email ids, I never got the result as expected. The result was a big file with initial content as:
"Suspicious sign in prevented
;[email protected];x-store-info: J++/JTCzmObr++wNraA4Pa4f5Xd6uensydyekesGC2M=
Authentication-Results: hotmail.com; spf=pass (sender IP is 209.85.214.199; identity alignment result is pass and alignment mode is relaxed) smtp.mailfrom=3SfD1UBAKAI4suu6C5BA-569w73Gy66y3w.u64@gaia.bounces.google.com; dkim=pass (identity alignment result is pass and alignment mode is relaxed) header.d=google.com; x-hmca=pass
X-SID-PRA: [email protected]"
and xyz more things.

It seems hotmail and yahoo now doesn't let you sign in from a different geo...

Any alternative?

Thanks
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
I tried using this code today with hotmail and yahoo both..
For both the email ids, I never got the result as expected. The result was a big file with initial content as:
"Suspicious sign in prevented
;[email protected];x-store-info: J++/JTCzmObr++wNraA4Pa4f5Xd6uensydyekesGC2M=
Authentication-Results: hotmail.com; spf=pass (sender IP is 209.85.214.199; identity alignment result is pass and alignment mode is relaxed) smtp.mailfrom=3SfD1UBAKAI4suu6C5BA-569w73Gy66y3w.u64@gaia.bounces.google.com; dkim=pass (identity alignment result is pass and alignment mode is relaxed) header.d=google.com; x-hmca=pass
X-SID-PRA: [email protected]"
and xyz more things.

It seems hotmail and yahoo now doesn't let you sign in from a different geo...

Any alternative?

Thanks
Is there source code you used
 

Drew

Client
Регистрация
29.07.2012
Сообщения
70
Благодарностей
14
Баллы
8
Are we able to get the "To:" field in the bulk email download also?

// tuple.Item1 - sibject, tuple.Item2 - from, tuple.Item3 - html message, tuple.Item4 - text message

I see Subject,From,html Message,text Message but I do not see the ability to also pull the "To:" field?

I find the use of the "To:" field very useful when utilizing catchAll email addresses.

I guess I could just pull it out of the full message with header but it would be nice if it was a value returned like the others.
 

Drew

Client
Регистрация
29.07.2012
Сообщения
70
Благодарностей
14
Баллы
8

nevadahsot

Client
Регистрация
27.04.2012
Сообщения
106
Благодарностей
5
Баллы
18

raphael

Client
Регистрация
20.07.2012
Сообщения
62
Благодарностей
4
Баллы
8
Hi all, i try to lunch c# code inside Zennoposter but it stop the instance directly.
It work on ProjectMaker without problem...
Build with 5.0 and run With Zennoposter 5 problem
Buil and run With the previous version work

its possible to add a variable if no mail ?
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
What's the error you got?
 

raphael

Client
Регистрация
20.07.2012
Сообщения
62
Благодарностей
4
Баллы
8

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 706
Баллы
113

raphael

Client
Регистрация
20.07.2012
Сообщения
62
Благодарностей
4
Баллы
8

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 706
Баллы
113
What's in logs?
 

raphael

Client
Регистрация
20.07.2012
Сообщения
62
Благодарностей
4
Баллы
8
Log panel:
Failed to complete project C:\....MAIL VALIDATOR.xmlz

Can i have a more detailed log somewhere ?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 706
Баллы
113
Logs folder in ZennoPoster directory.
 

raphael

Client
Регистрация
20.07.2012
Сообщения
62
Благодарностей
4
Баллы
8
2013-05-21 09:37:54.2953|WARN|ZennoLab.LogLibrary.InternalError|Error occured in module "Compiling the project code"
Message: "Error in action "" "The type or namespace name 'ComponentModel' does not exist in the namespace 'System' (are you missing an assembly reference?)" в строке "using System.ComponentModel;
""
2013-05-21 09:37:54.2953|WARN|ZennoLab.LogLibrary.InternalError|Error occured in module "Compiling the project code"
Message: "Error in action "" "The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?)" в строке "using System.Data;
""
2013-05-21 09:37:54.2953|WARN|ZennoLab.LogLibrary.InternalError|Error occured in module "Compiling the project code"
Message: "Error in action "" "The type or namespace name 'Drawing' does not exist in the namespace 'System' (are you missing an assembly reference?)" в строке "using System.Drawing;
""
2013-05-21 09:37:54.2953|WARN|ZennoLab.LogLibrary.InternalError|Error occured in module "ZennoPoster"
Message: "Failed to complete project C:.....MAIL VALIDATOR.xmlz"


Same code work in ZP previous version.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 706
Баллы
113

raphael

Client
Регистрация
20.07.2012
Сообщения
62
Благодарностей
4
Баллы
8

raphael

Client
Регистрация
20.07.2012
Сообщения
62
Благодарностей
4
Баллы
8
Hi all just 2 questions,

ZennoLab.InterfacesLibrary.Enums.Email.EmailProtocol.POP3,
24*100, 1000, false);

24 is lastHours
100 is maxCount (the number of max messages in 1 process ?)
20,
false is if or not deleteMessages


What is the 20 ?

VisualStudio 2010 Express wil be installed automatically with the new release of V5?
 

raphael

Client
Регистрация
20.07.2012
Сообщения
62
Благодарностей
4
Баллы
8
up up up
 

Drew

Client
Регистрация
29.07.2012
Сообщения
70
Благодарностей
14
Баллы
8
has anything changed in version 5+. Bulk email c# not working for me now.
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113

raphael

Client
Регистрация
20.07.2012
Сообщения
62
Благодарностей
4
Баллы
8
for Drew
It's bug. Will be fixed.
You can install VisualStudio 2010 Express: http://www.microsoft.com/visualstudio/rus/downloads if you wanna work with v5 and C# now.
Hungry, just 2 questions,

ZennoLab.InterfacesLibrary.Enums.Email.EmailProtoc ol.POP3,
24*100, 1000, false);

24 is lastHours
100 is maxCount (the number of max messages in 1 process ?)
1000,
false is if or not deleteMessages

- What is the 1000 ?

- VisualStudio 2010 Express wil be installed automatically with the new release of V5?
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
1000 - max count of emails to download
24*100 - 24 here means count of hours per day (and night) and 100 - count of days. So will download emails per last 100 days
VisualStudio 2010 Express - don't think so
 
  • Спасибо
Реакции: raphael

archiemax

Новичок
Регистрация
05.09.2012
Сообщения
6
Благодарностей
1
Баллы
3
Can anyone tell me how to download more than 100 emails? I used pop3 (downloaded 100 emails) and imap (downloaded 90 emails). I have over 200 small templates thath needs email verification, and I use one email for everything. But I have problem with email processing. I can only verify 100 emails, because Zennoposter can only download 100 at once. I'm using 5.0.4.2. thanks
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 706
Баллы
113

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
Код:
Tuple<string, string, string, string>[] allMails;
allMails = ZennoPoster.BulkMailDownload("[email protected]",
       "password", "imap.googlemail.com", 993, true,
       ZennoLab.InterfacesLibrary.Enums.Email.EmailProtocol.POP3,
       24*100, 1000, false);
// 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.Item4);//body of the text message
       project.Tables["Tabl1"].AddRow(tmp);
}
Tried the above without any success. I obviously changed my password, email and imap. This was for mail.com. I also tried port: 143.

Shame there's no bulk feature in the receive emails action.
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
682
Баллы
113
In the code above you must change POP3 to IMAP after EmailProtocol if you are using imap
 
  • Спасибо
Реакции: shabbysquire

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
That's sorted that one out, thanks!

The next issue is that it appears to login, but I keep getting log message: Sequence contains no matching element. So it logs in ok and reads all the emails - all emails are unread prior to action, then are marked as read after the action - but it fails to grab any data.
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
682
Баллы
113
Okay, there is an error in the code above. If you look the table is named Tabl1 so you have to change that to Table1 or name your table Tabl1 in order to get it to save to file.
 

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
Код:
Tuple<string, string, string, string>[] allMails;
allMails = ZennoPoster.BulkMailDownload("[email protected]",
       "password", "imap.googlemail.com", 993, true,
       ZennoLab.InterfacesLibrary.Enums.Email.EmailProtocol.POP3,
       24*100, 1000, false);
// 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.Item4);//body of the text message
       project.Tables["Tabl1"].AddRow(tmp);
}
The code fails to pick up the verification url for another project. It worked for a different one before.

Is there a way to pick up everything? All I receive (apart from email from & to) is a load of gibberish:

X-UI-Filterresults: notjunk:1;V01:K0:syHz7zE/4d4=:/EI5dpu1h8m3BVy6MW688AjGKT 0W6FThkyJFwXOy37WBkdrvS803v429/1+8CgN5wAZ9I5VZbzqWKRkgMOIV2nxVuvUD/uYdKXi uPd0LbLLqFQubFtB6bPRJuYzZW3z7mzjn+HzwwUJB6DibzvLycgUHMULVc4iD7T7e2Jjfmgap HbjMWKtI7DkHUlJk0axLNvDj1JQnn2Gc0SUPJ2otSw/fHJKKtxtrITQwSZJg8k8ktLagv3N/w OhWZSZqsIiscG2SDUFs5DfmF0y8AlIVEjk9CepDmzvqBL0kwxBxv8l/ZYdLSgUKG/BAv0qhtj FhHfTzDQdq+4CGlX1+2lfRnTO1g4gftNO6PB0KDNxWVDxoGjeKbh7oX5B7I1D0BLt57gHgvGM YTNc0GvKwkkrGVFsynd2zUKQMPIsuJH5iPJDpk22U0gUYzJVGkIp/qIVaTANgI/woiTFUZk0H sZlY9AOGBQOAhRgeRKS81hDHMP2Ln7krmLC2P3AbrUXHEQdvczgulX3u8zwBf99ubmWzTFfoP QO0bFMsJq1yFYxOLoqnwBWvY/ccxKdOURrkEb2epBNHJErzZl+C9M7TIgb6OLyPflR1NcK3MS sm4OKWg0W5vCvaTEN09i3pJ7mRF2krJ7gCje2gtkrn2iAv/iLJ2I/3p8vuD7to5w0+gLkleQi lL48W39qLNCdUTpHNQDb3+1M1ni5iM9JURo1NNoXbV5VTThSr9SaGwCxzJXCdOmy7fhMd1caW 2Vh3jLdTbShabuBfm+vQl/v3vJeCDRp3fxvatJ8za9eRwwT//t8iGSGVy+IevaB9TbmCWSqJe f1Sz3fIdK57zsC0v87TwKbYM1V9jUYl5EXOYyIXT+wzaVLWdpKEK+wBq0wctqGBYgg5k9jHkG ZQIseY4KNv885Qmnut/5UTwWkxVXhM1/1JGv2GsOHbxpj5u853iZFGmhQYdsTZMQgV7X/4k34 m9/wC0eurScW+bAhujJ5IG9n3TdK5VrflpPmtb1aYd3Cj28TAhuHMVBJA1iycUBuBp8F6jS6c XmGZeQlRAtd8iVZEupfTwy02KJQUY8WWPxXPP/MsCqS3Qqo9sByB9RxulZR9So3Xk5u1UOY2N oCUm/7AKXPODCmu4bBC02GLyK9K7quALo_OPKy50WHr8W3chRpDN+m6KPGCoK4mpEwm/6onixh 0WIAV2kgATsVmO8MaoeWA7QjBzgIMqO3U/yo9CB7fJ8gi11sCfixfhm6G2H7lf9HsQ19KH8cZ Vdv3Wsipr/iIFZCGrHGMgmgWLnXftbMKiIB41UrvSpadgiKHvrj1MG+UPVCMEeflGwk7dIBth PEs9GXgEYth5Cyf82322UAqwKuDF/P7tcnz1qGuzMyYkpXwms1H9atq+nTL750iIElhqLkqbj /VhbZ8F0/+yaLejTg==
 

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
Ok. Tried with both Mail.com & Hotmail.com. None of the verification urls were picked up with the code.

There are 2 x urls in the email - one raw link and one image button with url path.
 

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