ItGo.me 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

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

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

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.

asp.net 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 stackoverflow.com/questions/44383/reading-email-using-pop3-i‌​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
1

---Accepted---Accepted---Accepted---

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://pop.gmail.com:995>> set-modes pop [secure: true]>> print first pop+OK Gpop ready for requests from 213.240.224.162 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 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/3853945/download-delete-mails-from-pop3-account-in-asp-net

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