![eagetmail sub folders eagetmail sub folders](https://images.slideplayer.com/31/9789967/slides/slide_14.jpg)
The IMAP4 IDLE extension is what most refer to as PUSH mail - so you will need to find a library for C# that supports IMAP4 IDLE. POP3 is what you can use for retrieving mail, but it does not have support for PUSH either (so you would have to pull for mail). SMTP does not support receiving mail (never mind PUSH mail). You are approaching this from the wrong angle.
![eagetmail sub folders eagetmail sub folders](https://developer.team/vault/images/2018/10/18/1YARO.png)
Public static void NewMessageReceived(object source, NewMessageReceivedEventArgs e) _imap.NewMessageReceived += new NewMessageReceivedEventHandler(NewMessageReceived) Var inbox = _imap.SelectMailbox("INBOX") Private void StartIdleProcess(object sender, DoWorkEventArgs e) Worker.DoWork += new DoWorkEventHandler(StartIdleProcess) It works very fine and is very easy to implement. RegisterMethodForNotification(DoSomethink)
#Eagetmail sub folders code#
I hope that this is possible with code like this: Always when a new message arrived to the mail server, my application have to be notified and my application should execute the method 'X'. I want to connect with my application to a mail server and register a method 'X'. Are their any frameworks in C# to help me for this? But I can't find a way, how I can use push to get the emails instantly. To use this for future emails I didn't want to polling all the time to get them. Notify C# Client, when SMTP Server receive a new Email - c# I want to get all emails in my ASP.NET application that have a certain CC-recipient.