MailKit在收取163郵件時發生異常:
MailKit.Net.Imap.ImapCommandException: The IMAP server replied to the ‘EXAMINE’ command with a ‘NO’ response: EXAMINE Unsafe Login.
解決方案:
添加郵件客戶端識別
var client = new ImapClient()
var clientImplementation = new ImapImplementation
{
Name = "MailKitDemo",
Version = "1.0.0"
};
var serverImplementation = client.Identify(clientImplementation);