ImapX 2 is a crossplatform IMAP library for .NET, supporting SSL/TLS, OAuth2 and all major GMail IMAP extensions. It's the only IMAP library which supports all .Net 2.0 - 4.5, Mono and Windows Phone 7.1 and 8.0.
Questions tagged [imapx]
42 questions
0
votes
0 answers
C# ImapX Save XML (invalid due to special character in the end) attachment
I have been writing a C# program to retrieve XML attachments from emails and save them to disk for further process.
if (message.Attachments != null && message.Attachments.Any())
{
foreach (var attachment in message.Attachments)
{
…

PanosPlat
- 940
- 1
- 11
- 29
0
votes
1 answer
imapX - Download body fails
can you please tell me what i am doing wrong. I already downloaded the headers before. So the Message is not null. But msg.Body is null. Only if i downlaod with folder.Messages.Download and use the UID it will work.
Message aMassage…

leon
- 21
- 4
0
votes
1 answer
Filter by multiple subjects IMAPX
Is there any way to filter the messages' downloading by more than one specific subject?
For example, I need to download only the messages which contain "for 10" or "for 11" in their respective subjects.
With one subject it's…

SySc0d3r
- 652
- 1
- 6
- 18
0
votes
1 answer
Can't connect to Gmail with IMAPX using c#
I'm following an example from IMAPX but it will not connect to GMAIL.
IMAP is enabled for the account and I've triple checked the username and password but it won't connect:
var server = ConfigurationManager.AppSettings["server"];
var login =…

user2033791
- 810
- 12
- 23
0
votes
1 answer
IMAP query by sender part
I am using ImapX and C# to connect to my Gmail account.
There are two snippets of code:
var folder = client.Folders["INBOX"]
var messages = folder.Search("SINCE 25-Dec-2015 FROM youtube.com", true);
This snippet returns a couple of messages sent by…

Nitkov
- 468
- 6
- 18
0
votes
0 answers
IMAP GMAP by IMAPX run forever
I tried to get unread email from Gmail by IMAP protocol. I found ImapX library and it ran perfectly this morning. But this afternoon I delete so many mails in my inbox folder and run again, the app browse in 30 minutes without responds. I just…

supper aban_89
- 339
- 1
- 2
- 15
0
votes
1 answer
No connection could be made because the target machine actively refused it 74.125.25.109:993
Hi I am trying to connect to gmail using ImapX library in C#.
But getting error like this No connection could be made because the target machine actively refused it 74.125.25.109:993 while creating TcpClient (inside ImapX).
I browse few same…

Jenish Rabadiya
- 6,708
- 6
- 33
- 62
0
votes
1 answer
How to use IMAPX with ASP.NET MVC?
i want to ask that how i can read gmail inbox using impax with MVC? i have searched the documentation but couldn't find any solution, i'm sharing my code i have done so far.
public void getMessage()
{
var client = new…

DevWithSigns
- 725
- 16
- 33
0
votes
1 answer
Missing Carriage Return in Downloaded Email Attachment ImapX
Here is my code:
#Region "Imports"
Imports System.Text.RegularExpressions
Imports System.Text
Imports Microsoft.VisualBasic.CallType
Imports ImapX
Imports System.Runtime.CompilerServices
Imports System.Security.Authentication
Imports…

as9876
- 934
- 1
- 13
- 38
0
votes
2 answers
Possible to get Quota (used & total space) on Gmail using ImapX 2?
Is it possible to get the used & total or free space for a Gmail account using ImapX 2?
According to https://stackoverflow.com/a/15390448 Gmail supports the Quota Extension for IMAP, although I didn't see a way to send a custom command via ImapX.

Alien Technology
- 1,760
- 1
- 20
- 30
0
votes
1 answer
get attached files in mail using Imapx in asp.net c#
I am using Imapx 2.0.0.9 to read the mails from gmail. It is working fine upto reading mails and get some files attached like .docx, .xls etc. But I am not getting the files attached with
extensions like .txt, .rtf in attachment. Here is my code:
…

Girish Vadhel
- 735
- 1
- 5
- 17
-1
votes
2 answers
Can't get email folder names using IMAPX
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 =…

Software Dev
- 5,368
- 5
- 22
- 45