当前位置: 首页 > 工具软件 > OpenPOP.net > 使用案例 >

使用Openpop.Net 组件删除邮件小贴士

高墨一
2023-12-01

由于英文不懂,在使用OpenPop.Net 删除邮件时,发现不能删除,服务器返回的状态信息才显示为 OK

网上搜索,看到官方说,调用 DeleteMessage 方法后,需要显示的 调用 Disconnect 方法。服务器才会执行删除操作。

原文:http://hpop.sourceforge.net/exampleDeleteMessage.php

 
  

It must be pointed out that it is important to call the Disconnect() method. If this is not done, the message will not be deleted
The POP3 protocol specifies that emails are only marked as deleted, and a special QUIT command must be sent to commit the changes, actually deleting the message at that point.
The Dispose() method of the Pop3Client does not send this QUIT command, since it of course does not know if that is intended.

转载于:https://www.cnblogs.com/zqonline/archive/2011/02/16/1955988.html

 类似资料: