May 22, 2009 at 2:12 PM
Edited May 22, 2009 at 2:14 PM
Oh,I have one mistake.
The DeleteEMail method request a command text as "DELE 1" under the food.
Mail server receive this request and set a delete flag to the message.
And you must call Quit method.
Mail server receive quit request and delete all mail set as delete.
This proces is defined by specification of pop3 protocol
You write code like below...
using (Pop3Client cl = new Pop3Client())
cl.UserName = "MyUserName";
cl.Password = "MyPassword";
cl.ServerName = "MyServer";
cl.AuthenticateMode = Pop3AuthenticateMode.Pop;
///Delete first mail of my mailbox
///Delete all mail from mailbox set as delete
But what I wonder is that the Quit method is called inside dispose method.
If you copy all above code,these messages must be deleted.
If not,please add Quit method after call DeleteEMail method.