ItGo.me Focus on IT Recommend

Home > asp.net - How to fetch new mail from Gmail Inbox using POP3 Command?

asp.net - How to fetch new mail from Gmail Inbox using POP3 Command?

2020腾讯云8月秒杀活动,优惠非常大!(领取2860元代金券),
地址https://cloud.tencent.com/act/cps/redirect?redirect=1040

2020阿里云最低价产品入口,含代金券(新老用户有优惠),
入口地址https://www.aliyun.com/minisite/goods

I want to fetch my Gmail Inbox mail by using POP3 commands. I have more than 1000 email in my account. But i can fetch only 255 oldest mail. Help me to fetch new mail from my inbox.

 public double GetEmailCount()
    {
        double count = 0;
        string response = SendCommand("STAT");

        if (IsResponseOk(response))
        {
            string[] arr = response.Substring(4).Split(' ');
            count = Convert.ToDouble(arr[0]);
        }
        else
            count = -1;
        return count;
    }
asp.net pop3
|
  this question
asked Aug 8 '14 at 14:39 Harshal Sathawane 36 4

 | 

1 Answers
1

If you are not seeing all of your email listed in your GMail account when using POP3, then you probably need to change your POP3 settings in GMail to show all messages. By default, it doesn't show you all of the messages.


|
  this answer
answered Aug 9 '14 at 13:41 jstedfast 12.5k 1 28 50

 | 

Recommend:pop3 - Reading mails from gmail account in asp.net

unable to get the mails from the inbox.. below is the code i used for logging in... try { TcpClient tcpclient = new TcpClient(); // create an instance of TcpClient tcpclient.Connect("pop.gmail.com", 995); //

oriUlr:http://stackoverflow.com/questions/25206047/how-to-fetch-new-mail-from-gmail-inbox-using-pop3-command

------splitte line----------------------------