Click here to Skip to main content
15,891,976 members
Everything / Imap

Imap

IMAP

Great Reads

by JosipK, Marko Kozlina
C# and VB.NET console applications that demonstrate how to create and send an email reply with IMAP and SMTP protocols in .NET Framework
by Chris_Green
It all started with an email sent to a daemon.  A windows service hosting two modules, each of which monitors an inbox for automation, dutifully ignored warnings from IT that basic authentication for O365 would be switched off in several months. This is how we solved it.
by Alvin Ashcraft
The Latest Release of Aspose.Email
by Syed M Hussain
Authenticating an application using IMAP

Latest Articles

by Chris_Green
It all started with an email sent to a daemon.  A windows service hosting two modules, each of which monitors an inbox for automation, dutifully ignored warnings from IT that basic authentication for O365 would be switched off in several months. This is how we solved it.
by JosipK, Marko Kozlina
C# and VB.NET console applications that demonstrate how to create and send an email reply with IMAP and SMTP protocols in .NET Framework
by Elmue
With this project, C++ and .NET Windows programmers get a very versatile library to send and download emails via SMTP, POP3 and IMAP with TLS and SSL support.
by Alvin Ashcraft
The Latest Release of Aspose.Email

All Articles

Sort by Score

Imap 

15 Jun 2016 by JosipK, Marko Kozlina
C# and VB.NET console applications that demonstrate how to create and send an email reply with IMAP and SMTP protocols in .NET Framework
3 Nov 2015 by Richard MacCutchan
See https://support.google.com/mail/answer/78775?hl=en[^].
10 Jan 2018 by Jochen Arndt
You have already asked in the article forum (Building custom email client in WPF using C#[^]). Please be a little patient. I think that the author will answer (he is still active her at CP but might not login daily). He also gots a notification mail about your forum post so that he knows about...
22 Sep 2022 by Chris_Green
It all started with an email sent to a daemon.  A windows service hosting two modules, each of which monitors an inbox for automation, dutifully ignored warnings from IT that basic authentication for O365 would be switched off in several months. This is how we solved it.
19 Aug 2013 by kalisiddayya
i want to unread mail from gmail accout created in google app.i try to read the mail.connection is established but email it is should 0.MailServer oServer = new MailServer("pop.gmail.com", "alpha@convate.com", "Siddhu@1", ServerProtocol.Pop3);MailClient oClient = new...
19 Aug 2013 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Refer - C# - Retrieve Email from Gmail Account[^].Quote:Because Gmail POP3 server doesn't work like normal POP3 server, it hides old emails automatically even the email was not deleted, so we suggest that you use IMAP4 protocol.Please go through the code example and use Gmail IMAP4 server.
9 Oct 2013 by raghav.softobiz
Hello Guys,I am trying to read gmail emails via imap but whenever I connect to imap then I will get this errorAn existing connection was forcibly closed by the remote hostHere is my code Imap4Client imap = new Imap4Client(); imap.Connecting += new...
9 Oct 2013 by codestar007
It could be firewall problem, or you have made too many connections to the server.Check the below link oncehttp://forums.asp.net/t/1440964.aspx[^]
8 Nov 2013 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Refer- Unique Identifier (UIDL) in POP3/IMAP4/Exchange Web Service/WebDAV protocol[^]Quote:Using Unique Identifier (UIDL)The mail server assigns an unique identifier for every email in the same account. You can get the UIDL for every email by MailInfo.UIDL property. To avoid to receive the...
13 Nov 2013 by gouravkaila
Hi,I need help to delete a mail message based on some condition in c#.i found something like below on some search on internet-imap.Command("copy " + ids[i].ToString() + " [Gmail]/" + action_flag);this seems to be copying it to some folder, not delete.Is there any way to...
13 Nov 2013 by Bernhard Hiller
You have to store the message, and the call expunge.The store command looks like:_CommandText = string.Format("{0} STORE {1} +FLAGS (\\DELETED)\r\n", CommandPrefix, sequenceNumber);with CommandPrefix being the number of the call, and sequenceNumber the number of the mail messageThe...
7 Jan 2014 by wernkebm
I cannot seem to find, online, the resources that describe how to interact with gmail (or any email provider), other than sending emails. I would like to know how to receive the emails, using pop3 or imap protocol. Can anyone help?
17 Mar 2014 by Zeeshan17
Hi,I looking to build gmail messaging app using php.My requirement is as follows:- Be able to display and respond to Gmail messagesShould be able to see all of the Gmail messages as well as be able to respond to all of them correctly.- The three primary objectives are as...
4 Aug 2014 by tieugiang94
In android. How to read emails through pop3/imap protocols ?THe email provider maybe gmail, yahoo, exchange server..v.v..
13 Aug 2014 by Zeeshan17
Hi,I have developed a generic mail system that uses PHP Imap to fetch mails from specific mail providers like Gmail,Yahoo,Hotmail and other.Here i am making use of ImapMailbox Library from here...[^]Now i want check for new mails in mailbox and show them in my system,this needs to be...
20 Mar 2015 by Sujith Karivelil
You can refer this article. Download Mail Details With attachment using IMAP[^]
20 Mar 2015 by debasish mishra
You can use Imapx Libraries.Using these libraries worked for me.The best one in IMAP i believe.http://imapx.codeplex.com/[^] If you are using these type of dlls and connecting to Gmail server then may be your organization firewall is blocking the inbound and outbound calls.This might be...
9 Jul 2015 by Member 11516051
Hello,I wrote add-in code for outlook. I configured my email in outlook with IMAP setting. Whenever new mail event occured I am unable to get mail body (HTML/Plain)text. It creating a problem in Put_mail() function as well. Please guide me to resolve problemThanks In advanced.
9 Jul 2015 by Member 11516051
Hello Richard,This is my code. When my outlook email is configured with IMAP setting. (imap.gmail.com and stmp.gmail.com ). At that time ,bstrBody get retrieve with NULL. But (HRESULT)hr value as S_OK. So I am not getting where the problem arise. Same thing happened for put_mail()...
3 Nov 2015 by Member 12010067
When I want to connect the imap.gmail.com with ssl, It did not work in sslStream.AuthenticateAsClient("imap.gmail.com") , The program stop here. Here is my code:var m_oImapServ = new TcpClient("imap.gmail.com", "995");var sslStrm = new SslStream(m_oImapServ.GetStream(),false); ...
28 Aug 2017 by Heba Kamel
Hi, I want to read gmail emails by using imapI got those code from searching using (Imap imap = new Imap()){ imap.Connect("imap.gmail.com"); // or ConnectSSL imap.UseBestLogin("********@gmail.com", "*******"); imap.SelectInbox(); List uids =...
21 Nov 2015 by Kornfeld Eliyahu Peter
The message you see mostly means that you have a blocked port in your way to the server...The port here is 143 (the default port for not-secured IMAP protocol)...It is also very possible that you need to use port 993 (the port for secured IMAP protocol) as Google request secured connection...
9 May 2016 by Mehran Shafqat
hello every one im working on a project now i have issue. im using s22.imap library now i can gent first unseen mail and show in text box i want to get first 10 or all unseen email in data grid view is it possible please help how can i do this ?What I have tried:using (ImapClient...
9 May 2016 by jonhy05
Use var firstTen = client.GetMessages(uids.Take(10), FetchOptions.TextOnly)foreach(MailMessage msg in firstTen){ // ... your code here}(untested)
18 Jul 2016 by Member 12373848
Req Is : I need to check if CD/DVD RW is having data, if yes need to delete data and write on it new data after deletion.I am able to delete data but not able to write after that.Please provide a sample code in C++ for deletion and burning CD/DVD using IMAPI 2.0.What I have tried:I...
14 Jul 2016 by OriginalGriff
Um...CD and DVD are not re-writable devices: once you write to the physical media that's it, it can't be changed subsequently, even with a burner (That's not quite true, IIRC you can change 0s to 1s but not 1s to 0s - or vice versa, I can't remember offhand)You can if they are CDRW or DVDRW...
26 Oct 2016 by Member 12373848
I am creating a dll using IMAPI 2.0 with C++, can anyone help in how to monitor progress of burn & conitinuously send updates from dll to Java.What I have tried:I was trying to attach IDiscFormat2Data Event to burn thread. But how send this update continuosly to Java.
26 Oct 2016 by Member 12373848
How to call a MFC dll from Java. So that it feels as if Java launched the MFC UI.I am developing a MFC dll using IMAPI 2.0 with C++ to burn data on DVD/CD. I want to call this dll from Java & hence the run MFC dll with its UI. This will help in monitoring the burn process.What I have...
26 Oct 2016 by KarstenK
You must correct initialize the MFC runtime before the first use, like it is here described.For updating the UI you must implement an interface function with JNI to the MFC-dll, in which the update (as message parameter) the signaled. Because the JRE/JNI and the MFC are in different...
26 Oct 2016 by KarstenK
The easiest way is to setup a timer in java and poll for the actual status in C++. It makes a lot sense to poll "only once" in a second.
26 Oct 2016 by Richard MacCutchan
See jni mfc - Google Search[^].Also, you already posted this question at How to monitor progress of burn using IMAPI 2.0 and pass updates to java[^]. Please do not repost.
29 Jun 2017 by Member 13285748
I've been making a Python script which checks for emails since logging in. Here is my code so far: #!/usr/bin/python import imaplib, getpass mail = imaplib.IMAP4_SSL('imap.gmail.com') u = raw_input('Your Gmail Address: ') p = getpass.getpass() mail.login(u, p) mail.select("inbox") while 1: ...
1 Nov 2017 by Mcbaloo
I'm trying to use the MailSystem.Net to retrieve mails from my gmail account but i get the above error. I have just follow through an example online to make a demo application as a window service. I tried to log the errors to a folder and after running the service i get the above error...
1 Nov 2017 by Jochen Arndt
It looks like connections are not closed (disconnected) when not used anymore. To know how to do that you should read the documentation of the used Imap4Client class. I would expect that connections are closed in the Imap4Client destructor. But even then it would be better to disconnect...
11 Jan 2018 by Member 13336882
I tried to follow this article What i am trying to do is retrieve emails using IMAPX.The problem is, when i create a class to handle all the function using this code : Imports System Imports System.Collections.Generic Imports System.Linq Imports System.Text Imports System.Threading.Tasks...
11 Jan 2018 by Richard Deeming
For the second problem, your converted code is slightly off. VB.NET uses AddHandler[^] to wire up event handlers, not the += syntax that C# uses. AddHandler client.Folders.Inbox.OnNewMessagesArrived, AddressOf Inbox_OnNewMessagesArrived
6 Feb 2018 by Member 13336882
I am using this code to get the list of email folders : Class emailFolder Public Property Title As String End Class Public Shared Function GetFolders() As List(Of emailFolder) Dim folder = New List(Of emailFolder) Dim foldername =...
6 Feb 2018 by Jochen Arndt
You have an inner loop (foreach subfolder In subfolders) but create the name always from the parentFolder. So it should be (untested) ' Optionally add parent folder always here 'folder.Add(New emailFolder With {.Title = parentFolder.Name}) If parentFolder.HasChildren Then Dim subfolders =...
3 Mar 2018 by aousaf rshid
I just started using the open-source library called IMAPX to interact with my IMAP mailbox.I am following this article on CodeProject -https://www.codeproject.com/Articles/1083307/Building-custom-email-client-in-WPF-using-Csharp .I can login properly and retrieve the email folders.But the...
3 Mar 2018 by RickZeeland
I have tried several Imap libraries, but none would work correctly with Outlook 365, Gmail sometimes works. The best I found so far is GitHub - jstedfast/MailKit: A cross-platform .NET library for IMAP, POP3, and SMTP.[^] The tutorial can be found here: Introduction[^]
27 May 2014 by Syed M Hussain
Authenticating an application using IMAP
20 Aug 2014 by Elmue
With this project, C++ and .NET Windows programmers get a very versatile library to send and download emails via SMTP, POP3 and IMAP with TLS and SSL support.
20 Mar 2015 by Member 11541259
hello guys i need help about accessing gmail unread mails and after getting send these to gsm mobile as a message plz help methanx
8 Nov 2013 by alex giulio
hi everybody all over the world!I were coding a project which using Imap to get mail from server. When get down it , i see UIDL property but i don't know deeply about it. if any one know this, please help me! thank you so much!
19 Sep 2014 by Daniel Rios M
/*HOW TO GET Just the UNREAD EMAILS*/ MailClient oClient = new MailClient("TryIt"); oClient.GetMailInfosParam.GetMailInfosOptions = GetMailInfosOptionType.NewOnly;
10 Jul 2015 by Member 11828636
Can anyone guide me, where to find servicestack server sent event sample code.First I explain my issue. I have created a restful service(using servicestack framework) to pull down list of emails for inbox folder using afterlogic mailbee object(external product). Now, each time if I do a...