首页 > 解决方案 > 使用 OpenPop.NET 删除时移动到垃圾箱

问题描述

我正在尝试使用 pop3Client 从邮箱中删除邮件,但邮件已从邮箱中永久删除,我们是否有任何选项可以在删除时在垃圾箱中显示邮件。

我的代码:

using (Pop3Client client = new Pop3Client())
 {
        // Connect to the server
        client.Connect(hostname, port, useSsl);

        // Authenticate ourselves towards the server
        client.Authenticate(username, password);

        // Get the number of messages in the inbox
        int messageCount = client.GetMessageCount();

        //My logic

        client.DeleteAllMessages();

    }

标签: c#.netpop3

解决方案


推荐阅读