Checking email

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

awzse00

Client
Регистрация
16.03.2013
Сообщения
238
Реакции
36
Баллы
28
Can anybody tell me a good solution on how to make zenno verify the email everytime ? Sometimes it's logges in some times it doesn't, and i have a pretty high quality template that i need to run, with paying proxies 1 by 1, so discarding them because zenno can't login correctly to the email it's pretty expensive. The email that i'm using is privateemail and it's a paid service, and besides that its works ok 7 times/10.
 
I mean that i register on a website, they send me a confirmation link, that zenno has to get from e-mail and confirm the accout, now sometimes it manages to connect to the email to get the link, and sometimes it doesn't, especially in ProjectMaker i encouter the problem most often, i have to close/open zenno in order to make it work again, to connect to the email to get the link
 
I mean that i register on a website, they send me a confirmation link, that zenno has to get from e-mail and confirm the accout, now sometimes it manages to connect to the email to get the link, and sometimes it doesn't, especially in ProjectMaker i encouter the problem most often, i have to close/open zenno in order to make it work again, to connect to the email to get the link
Did you use automatic settings or manual?
Usually I use mail with web interface and do receive mail in browser. It works perfectly.
 
  • Спасибо
Реакции: awzse00
There's no need, i think you are talking about https://github.com/jstedfast/MailKit, this solution that i have right now is very good and cheap on the domain part, the only problem is getting that email everytime.
 
MailKit receives letters from the first received in the soap, so you do not see your letter, you have to take from the end
 
C#:
Развернуть Свернуть Копировать
public class MailExt
    {
        public static bool DownloadMessages(IZennoPosterProjectModel project, string server, int port, string login, string password, int count)
        {
            using (var client = new ImapClient())
            {
                client.Connect(server, port, SecureSocketOptions.SslOnConnect);
                client.Authenticate(login, password);
               
                var inbox = client.Inbox;
                inbox.Open(FolderAccess.ReadOnly);
               
                for(int i = inbox.Count - 1; i >= inbox.Count - count; i--)
                {
                    var message = inbox.GetMessage (i);
                    project.Lists["SourceList"].Add(message.Subject);
                }
               
                client.Disconnect(true);
            }
            return true;
        }
    }

C#:
Развернуть Свернуть Копировать
var server = project.Variables["Server"].Value;
var login = project.Variables["Login"].Value;
var password = project.Variables["Password"].Value;
return MailExt.DownloadMessages(project, server, 993, login, password, 20);
 
C#:
Развернуть Свернуть Копировать
public class MailExt
    {
        public static bool DownloadMessages(IZennoPosterProjectModel project, string server, int port, string login, string password, int count)
        {
            using (var client = new ImapClient())
            {
                client.Connect(server, port, SecureSocketOptions.SslOnConnect);
                client.Authenticate(login, password);
              
                var inbox = client.Inbox;
                inbox.Open(FolderAccess.ReadOnly);
              
                for(int i = inbox.Count - 1; i >= inbox.Count - count; i--)
                {
                    var message = inbox.GetMessage (i);
                    project.Lists["SourceList"].Add(message.Subject);
                }
              
                client.Disconnect(true);
            }
            return true;
        }
    }

C#:
Развернуть Свернуть Копировать
var server = project.Variables["Server"].Value;
var login = project.Variables["Login"].Value;
var password = project.Variables["Password"].Value;
return MailExt.DownloadMessages(project, server, 993, login, password, 20);

thank you for the time and effort, i will test it out and see how it works, maybe in c# works better. again, thank you for your time and effort.
 
MailKit proxy supports socks
 
Последнее редактирование:

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