The IMAP server replied to the 'EXAMINE' command with a 'NO' response: EXAMINE Unsafe Login.

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);
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章