Questions tagged [mimekit]

A cross-platform .NET MIME creation and parser library with support for S/MIME, PGP, TNEF and Unix mbox spools.

A cross-platform .NET MIME creation and parser library with support for S/MIME, PGP, TNEF and Unix mbox spools.

MimeKit is a C# library which may be used for the creation and parsing of messages using the Multipurpose Internet Mail Extension (MIME), as defined by numerous IETF specifications.

303 questions
2
votes
1 answer

Parsing Outlook Emails (.msg) with Mimekit

Im attempting to parse .msg files from outlook to get the MIME content in order to save the file as an eml. I'm using Exchange Web Services to save emls as they come through a journaled inbox on the exchange server, but some emails need to be saved…
1
vote
1 answer

Is there an available explanation of the difference between MimeKit and MimeKitLite?

Love the MimeKit and MailKit libraries. Work great. Just discovered MimKitLite, but cannot find any info on that is "lite" about it. Is there an explanation somewhere? Thank you. I checked in the release notes and on the MimeKit.net site and its…
gregsohl
  • 41
  • 6
1
vote
1 answer

Mimekit changes headers encoding

I have MailMessage, its HeadersEncoding is windows-1251. Then I create MimeMessage with MimeMessage.CreateFromMailMessage(message), but its headers encoded in utf-8. Why mimekit changes encoding and how to avoid this? I have this code: var message =…
1
vote
1 answer

Cast Amazon SES emails, stored in S3 buckets, to MimeMessage type (MimeKit)

I need to read incoming email messages, with the following constraints: An Amazon SES rule stores the incoming emails to a S3 bucket; These emails then need to be cast to the MimeMessage type, of the MimeKit C# library, in order to work well with…
1
vote
1 answer

MimeKit 3.4.0 runtime problem when going from Dev env. to Test env

A few days ago i updated the MimeKit from 3.3.0 to 3.4.0, but when i move the app from my development environment to my test environment, MimeKit 3.4.0 throws a strange exception: Could not load file or assembly 'MimeKit, Version=3.3.0.0,…
1
vote
1 answer

Differentiating between send or received email

i am developing an application which reads .eml files and extract their data and does some processes with these data with c# i am using MimeKit package. how can I differentiate between sent or received email? here is part of my code: private…
AlirezaEiji
  • 29
  • 1
  • 5
1
vote
1 answer

MailKit End-of-data rejected: Throttling quota exceeded (.NET Core 3.1)

I searched through many places but i can't find any answer to this exception. I'm trying to develop an e-mail service to send messages with attachments. My project uses .NET Core 3.1 and the mail service is MailKit 2.11. The attachments can be at…
1
vote
1 answer

MailKit-MimeKit - How to copy to Sent folder

I ama able to sent SMTP emails using MailKit & MimeKit and outlook is the client tool receiving these mails. Below code has been used and my Inbox has emails received. var email = new MimeMessage { Sender =…
Jaish Mathews
  • 766
  • 1
  • 9
  • 25
1
vote
1 answer

Mimekit - Access is denied trying to decrypt

I'm getting this error when trying to decrypt a MIME message: When I decrypt it in my local machine I can decrypt the mail without any problem, but the app deployed in server can't decrypt and results in this error. this is the code I'm using for…
1
vote
1 answer

Mimekit - Unable to cast object of type 'Org.BouncyCastle.Asn1.DerApplicationSpecific' to type 'Org.BouncyCastle.Asn1.Asn1SequenceParser'

I'm working with mimekit to encrypt and decrypt mime messages and I'm encountering this error everytime I try to decrypt a message: Unexpected object reading content. BouncyCastle.Crypto at Org.BouncyCastle.Cms.CmsContentInfoParser..ctor(Stream…
1
vote
1 answer

MailKit: ParseException when parsing an email string with email-address in displayname

I am currently working on a microservice that runs on DotNet6 and is using MailKit 3.1.0. I have the following code snippet: var from = "John Doe via noreply@company.com "; var mailBoxAddress = MailboxAddress.Parse(from); The…
Matthias Müller
  • 444
  • 6
  • 15
1
vote
1 answer

MIMEKIT MultipartSigned.Verify How can I disable Certificate Revocation list ceck?

is there anyway to disable the Certificate revocation list check when using MimeKit.Cryptography.MultipartSigned.Verify ? The Party transmitting to me cannot seem to get their CRL distribution point correct and I would like to simply disable the…
1
vote
0 answers

Powershell Mimekit trying to load System.Buffers 4.0.2.0 instead of latest. Works fine in VSCode

I have versions 2.15 of Mailkit and MimeKit. Mimekit is dependent on System.Buffers 4.5.1. When running the code through VSCode there is no problem. But in Powershell Desktop it does not work because it is looking for System.Buffers 4.0.2.0 (which…
jflener
  • 11
  • 1
1
vote
1 answer

MailKit version 2.15.0 disconnection issue

I am using MailKit version 2.15.0. When trying to disconnect the client using DisconnectAsync, I am getting the below error ClientDisconnect method()==> Exception Message: The ReadAsync method cannot be called when another read operation is…
Jatin Bhatia
  • 248
  • 4
  • 15
1
vote
1 answer

Cannot sent mail in Mimekit

While sending the mail from c# using the below code of MimeKit var message = new MimeMessage(); message.From.Add(new MailboxAddress(FromAddress, "Notification")); foreach (var address in Toaddress.Split(',')) { message.To.Add(new…
Rajesh
  • 1,600
  • 5
  • 33
  • 59