imapx

Unexpected characters returned when reading email using ImapX

雨燕双飞 提交于 2019-12-13 15:36:09
问题 When reading the body of an email using ImapX there is unexpected text at the end. A simplified version of the code is using (var imapClient = new ImapClient(host, port, useSSL)) { if (!imapClient.Connect()) throw new Exception(string.Format("Failed to connect to {0}:{1}", host, port)); if (!imapClient.Login(username, password)) throw new Exception(string.Format("Login failed for {0} connecting to {1}:{2}", username, host, port)); imapClient.Folders.Inbox.Messages.Download(); foreach (var

Unable to retrieve email folders on specific mail server.. possible causes

故事扮演 提交于 2019-12-11 14:19:19
问题 I am failing to retrieve the folders of my email account using ImapX: ImapX.ImapClient m_ImapClient = new ImapX.ImapClient( ImapServerAddress, (int) ImapServerPort, System.Security.Authentication.SslProtocols.Ssl3, false); m_ImapClient.Connect(); m_ImapClient.Login( EmailAddress, EmailPassword); //the two functions above each return true //this last statement throws an exception: ImapX.Collections.FolderCollection vFolders = m_ImapClient.Folders; and that is: 'm_ImapClient.Folders' threw an