Focus on IT Recommend

Home > email - Download/Delete mails from pop3 account in ASP.NET

email - Download/Delete mails from pop3 account in ASP.NET



I have this WCF application which is hosted as a windows service. This service has to download mails which have CSV attached to them from a pop3 account. After getting that CSV I have to delete that mail from the pop3 account so that it is not downloaded again. How can I do it?

Please help. email download pop3
  this question
edited Jul 11 '15 at 9:19 Brian Tompsett - 汤莱恩 3,521 13 31 80 asked Oct 4 '10 at 9:17 Sidharth 526 1 13 36      Are you using a pop3 library - which one? - or trying to implement the pop3 protocol yourself? I'm guessing C#? There's library suggestions‌​n-c –  Rup Oct 4 '10 at 9:19      I am trying to implement pop3 by myself in c#. –  Sidharth Oct 4 '10 at 9:59


1 Answers


Send DELE 1 command

If the message you want to delete has the ID 1

Recommend:pop3 - How to download an email from gmail

count because the pop server is accessed through SSL on port 995. >> pop: open/lines ssl://>> set-modes pop [secure: true]>> print first pop+OK Gpop ready for requests from 7mb34713954eem>> insert pop "u

Look at this class for more answers.

  this answer
answered Oct 4 '10 at 12:19 user333306      I am sending DELE 1 and i am getting the response +OK message 1 marked for deletion, but deletion is not taking place. –  Sidharth Oct 12 '10 at 5:35      It is marked for deletion. Send QUIT command to apply. –  user333306 Oct 12 '10 at 5:42      This works, thanks. Added you a point. This should have been marked as an answer. –  Maciej Nov 25 '10 at 23:07


Recommend:pop3 - Reading mails from gmail account in

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("", 995); //


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