Questions tagged [openpop]

open source POP3 client and MIME parser written in C#

From Sourceforge project:

.NET library written in C# with a full implementation of a POP3 client. Easy to use but yet powerful. Includes a robust MIME parser backed by several hundred test cases.

http://hpop.sourceforge.net includes examples, documentation and a general introduction for email.

109 questions
1
vote
1 answer

How to delete messages immediately in OpenPOP

In openpop we must call disconnect() or disposed() to submit the delete command, how to delete the messages immediately when call pop3Client.DeleteMessage()?
chris dan
  • 11
  • 1
  • 2
1
vote
1 answer

C# OpenPop.net Getting attachments from a E-mail

I'm here asking if it is possible to list all the attachments in a E-mail, show them in a list box, and only retrive them (on a program in the OS that opens that extension) once the user clicks on it. If it's possible, please explain how. I'm using…
João Borrego
  • 95
  • 2
  • 12
1
vote
3 answers

Store UID from message downloaded using POP protocol C#

I'm here to ask you the following: how do I store the Unique ID from a message in a POP server into my database, when using the OpenPop.Net library? Here's the "FetchMessage" function: public static List
João Borrego
  • 95
  • 2
  • 12
0
votes
1 answer

Reading pop3 mails using OpenPop.Net

I'm usging OpenPop.Net to access mail with C# app. I want to be able to mark the mails I handled using this app, without deleting/removing this mails. another problem is that I can't take only the unread mails, because there's other application /…
doubleM
  • 133
  • 4
  • 15
0
votes
1 answer

Getting a "Bad username or password" error using OpenPop.Net with Microsoft Outlook 365 email accounts

We have a custom application which uses OpenPop.Net, connecting via POP3 and pulling messages down for processing from a Microsoft Office 365 email account. This has always worked fine up until a couple weeks ago. We got an email that Microsoft…
0
votes
1 answer

Openpop.NET retriving attachment to specific folder

I am trying to retrieve an email attachment and save it to specific directory in filesystem using the code below. Dim objMail As Message = New Message(Encoding.ASCII.GetBytes(strMessage)) For Each att In objMail.FindAllAttachments() Dim Stream…
Spot Mark
  • 1
  • 1
  • 3
0
votes
0 answers

OpenPop doesn't delete messeages since 30.06.2021

since one Day, openpop deletes no message in office365/Exchange online. I use pop.DeleteMessage(i) 'Delete message The Message is marked to delete and i check this with a new pop.GetMessageCount The counter is one lower then before. At the end of…
0
votes
1 answer

OpenPop message.Save

I am trying to save the email msg as a file on the local drive. FileInfo msgfile = new FileInfo(Path.Combine(@"C:\\Users\\Public\\Documents\\msg-" + filenumber + ".msg")); getMessage.Save(msgfile); But when I attempt to open the file Outlook…
0
votes
0 answers

In openpop net when read email it's get an error "The input is not valid base64 string as it contains non-base 64 character,"

I use openpop net library for delete and forward email, normal mail(without TLS protocol) contains are readable. But which mails are sent through protocol(TLS) are not readable, that give me an error. "The input is not valid base64 string as it…
Brijesh Mavani
  • 1,070
  • 1
  • 15
  • 23
0
votes
0 answers

Email Attachment Download using C# , MFA enabled

OpenPop started failing from last week, after lot of debugging we found for the account which we are using, MFA is enabled. we tried different ways to fix this but no luck, we requested to bypass MFA but as per organization polices we cant disable.…
0
votes
0 answers

Unable to write data to the transport connection: An existing connection was forcibly closed by the remote server

I was able to connect and retrieve email from my POP3 email server. But I am getting this error in a few seconds of reading the email if the retrieve task needs few more time. Here is how I connected ` using (Pop3Client client = new Pop3Client()) …
0
votes
0 answers

OpenPop: "Authentication failed because the remote party has closed the transport stream."

We have a windows service that uses OpenPop to check an email account and process some email on a regular basis. We've been using it for years and had zero issues. This weekend we moved to a new server (with upgraded Windows Server 2016) and…
Dave Sanders
  • 3,135
  • 4
  • 33
  • 43
0
votes
1 answer

ToMailMessage() - An invalid character in Header

I have got a console application that processes emails in a mailbox using OpenPOP, it is failing on one email with the following exception An invalid character was found in the mail header: '\u007f The code it is calling is the following …
ccStars
  • 817
  • 2
  • 11
  • 34
0
votes
1 answer

Unknown-8bit OpenPop

I am using OpenPOP Pop3Client to monitor and import emails from a mailbox. I have received a few emails that are causing the following exception: "'unknown-8bit' is not a supported encoding name. For information on defining a custom encoding, see…
ccStars
  • 817
  • 2
  • 11
  • 34
0
votes
2 answers

Does POP client ignores new emails for a connected client?

I was trying to get new emails using OpenPop.Net. I see this example and noticed this example assumes that when we are connected to pop client, email indexes(ids) will not change (when uses index to fetch new email). for(int i = 0; i
Hello
  • 3
  • 3