This example demonstrates how to use Chilkat to connect to many IMAP accounts in parallel to do something..
You passed the correct login/password to login to imap.gmail.com, but you still get an “Invalid credentials” error. What gives? For example, you called Chilkat’s Imap.Login method, passing the correct login/password, and the imap.LastErrorText contains this: authenticateLogin(110ms): loginImap(110ms): ConnectionType: SSL/TLS ImapCmdSent: aaab LOGIN “email@example.com” getCompleteResponse(110ms): ImapCmdResp: aaab NO [AUTHENTICATIONFAILED] Invalid credentials (Failure) –getCompleteResponse –loginImap isOK: serverResponse: aaab NO [AUTHENTICATIONFAILED] Invalid credentials […]
This blog post covers from start to finish the process for getting a desktop application working with GMail using the IMAP protocol with OAuth2 authentication. Start here: https://console.developers.google.com/apis/credentials (1) The first step is to create credentials. Your app is a desktop application. HOWEVER, you will be creating credentials as if your app is a web app. See this YouTube video […]
There is much confusion and worry about Microsoft’s plans to disable standard password authentication for the IMAP, and POP3 protocols. Here is the announcement posted on 20-Sept-2019 on the Office 365 blog: https://developer.microsoft.com/en-us/office/blogs/end-of-support-for-basic-authentication-access-to-exchange-online-apis-for-office-365-customers/ Chilkat already supports OAuth2 for the IMAP, POP3, and SMTP protocols. (Microsoft will continue to support basic auth for SMTP) In all three protocols, an application can […]
Chilkat version 9.3.0, being released this week, includes new IMAP functionality to fetch emails without downloading attachments, and then subsequently fetch attachments one at a time separately. There is a new boolean property named “AutoDownloadAttachments”, which has a default value of True (YES). If set to False (NO), then all Fetch* methods will not download attachments. Note: “related” items are […]
Question: When using IMAP and fetching emails by sequence, does looping through the sequence get affected by deleting in mid-sequence or other changes to the mailbox’s content on the server? Answer: The answer is obtained by examining the IMAP specification (RFC 3501). Here’s what it says: 184.108.40.206. Message Sequence Number Message Attribute A relative position from 1 to the number […]