示例#1
0
        public bool GetEmail(string userName, string password, string server, string port)
        {
            waspPOP3 emailsFactory = new waspPOP3();

            emailsFactory.DoConnect("pop.gmail.com", 995, "*****@*****.**", "DisneyJob");
            string EmailFactory = emailsFactory.GetStat();
            string EmailsText   = emailsFactory.Retr(1);

            return(false);
        }
示例#2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            waspPOP3 emailsFactory = new waspPOP3();

            //try
            // {
            //}
            //catch (Exception e)
            ///{
            // richTextBoxMessages.Text += e.Message + "    ---Exception\n";
            //}
            richTextBoxMessages.Text += emailsFactory.DoConnect("pop.mail.yahoo.com", 995, "*****@*****.**", "Disneyyahoo5") + "Fine\n";
            richTextBoxMessages.Text += emailsFactory.GetStat();
            richTextBoxMessages.Text += emailsFactory.Retr(1);
            //    richTextBoxMessages.Text += emailsFactory.GetList();
            richTextBoxMessages.Text += emailsFactory.GetNoop();
            richTextBoxMessages.Text += emailsFactory.GetUidl();
            richTextBoxMessages.Text += emailsFactory.GetTop(3);
        }