Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 problem is,the article seems to be incomplete which is leaving me in the middle of the road.Firstly the `Retrieving Email Folder`'s part didn't work.I had to do a workaround.Now , i am trying to download the emails of a folder.The article,regarding this issue,has only a few line of code :

C#
  private void foldersList_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
 var item = foldersList.SelectedItem as EmailFolder;

if(item != null)
{
    // Load the folder for its messages.
    loadFolder(item.Title);
}
}

private void loadFolder(string name)
{
 ContentFrame.Content = new FolderMessagesPage(name);
 }


The article doesn't explain anything about `FolderMessagesPage` . So , i made a test page named `FolderMessagesPage`.I literally have no idea what to put in that page.Can anybody please guide me ?

What I have tried:

Please guide me on what to do ?
Posted
Updated 3-Mar-18 3:40am

1 solution

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[^]
 
Share this answer
 
v2
Comments
aousaf rshid 3-Mar-18 9:44am    
Is it open source ?
RickZeeland 3-Mar-18 9:46am    
Yes, see the line at the bottom:
MailKit is a personal open source project that I have put thousands of hours into perfecting with the goal of making it the very best email framework for .NET
aousaf rshid 3-Mar-18 9:46am    
can u please add a link to any tutorial regarding this ?
aousaf rshid 3-Mar-18 9:47am    
will be able to download emails with it ? With attachments also ? Are there any limitations?How about the performance ?
RickZeeland 3-Mar-18 9:55am    
Can not tell much about the performance as I stopped trying because Outlook 365 would not work, you will be able to download emails and attachment (if it works haha).
I updated my solution with a link to the tutorial, there you can also find answers in the FAQ.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900